I have a table in a database where I want to select the latest rows from it by some conditions.
I made a fiddle to better explain my needs.
As you can see, I already tried to create a query to get the data I want to have. But unfortunately I get not only the latest rows but actually every row which fits the conditions but the date.
I try to explain what I want with pseudo sql:
SELECT * FROM test WHERE date = Max(date) AND user = 'Timmy';
EDIT: It seems like it's not totally clear what I want. 'date' describes the creation date of the profile. So I want to get every latest profile for 'Timmy'.