I have a query that returns users by first name, last name, user id and a date they’ve completed an event.
I want the query to only return one row per user, but some users have completed the same event on multiple dates. I can’t use a distinct becuase the dates are distinct, and I can’t use a group by for the same reason.
how can I have the query return only the latest date on which the event was completed?
You should use
group by, and do aMAXon the date fieldSomething like…
depending on your data structure.