I have a slightly complicated SQL statement that returns a recordset like
ID | SentDate
1 | 2005-03-14 17:49:01.000
1 | 2005-03-15 16:49:01.000
2 | 2005-03-10 17:49:01.000
3 | 2005-03-12 17:49:01.000
4 | 2005-03-15 16:49:01.000
4 | 2005-03-15 17:49:01.000
How do I return the latest SendDate for each result? I am already using ORDER BY for the ID.
Thanks for replies,
Naoise
ID | SentDate
1 | 2005-03-14 17:49:01.000
1 | 2005-03-15 16:49:01.000
2 | 2005-03-10 17:49:01.000
3 | 2005-03-12 17:49:01.000
4 | 2005-03-15 16:49:01.000
4 | 2005-03-15 17:49:01.000
How do I return the latest SendDate for each result? I am already using ORDER BY for the ID.
Thanks for replies,
Naoise