D
Dorian
I have a table with id, team, date
I need to select the id and team with the latest date
team can appear multiple times.
I tried SELECT ID, TEAM, MAX(DATE) GROUP BY ID but then it expects TEAM to
have an aggregate function. I just need the team on the record with the
latest date.
Seems like it should be simple but how?
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
I need to select the id and team with the latest date
team can appear multiple times.
I tried SELECT ID, TEAM, MAX(DATE) GROUP BY ID but then it expects TEAM to
have an aggregate function. I just need the team on the record with the
latest date.
Seems like it should be simple but how?
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".