Filter by records added by used

Is there a way to display a full database BUT allow a user to filter only by records that THEY have added?

I.e. they have a button to switch between the public database and their private one.

Grateful for help!