I don't think this is a duplicate. I want to return multiple records each having the max date for a given type. I can do this is several lines I am just wondering if it can be done in one?
so I have a table
int, DateTime, varchar, int
id, date, message, type
1, 2000-1-1, hello, 2
2, 2000-1-2, goodby, 1
3, 2000-1-1, again, 1
Is there a way to return to oldest record for each type? so that would be record id 2 and id 1