Given
id | create_date | value
1 06/01/2009 12:36:35 a
2 06/01/2009 12:36:35 a
3 06/01/2009 12:36:35 a
4 07/01/2009 10:36:35 b
5 07/01/2009 10:36:35 b
6 07/01/2009 12:56:35 b
7 08/01/2009 1:56:35 a
8 08/01/2009 1:56:55 a
9 08/01/2009 1:57:00 a
10 09/01/2009 1:57:00 b
How would I return all results for each distinct value on the latest available date for that value?
So it would return
7 08/01/2009 1:56:35 a
8 08/01/2009 1:56:55 a
9 08/01/2009 1:57:00 a
10 09/01/2009 1:57:00 b
As 08/01/2009 is the max date for a and it has 3 corresponding records and 09/01/2009 is the max date for b
with 1 result
id | create_date | value
1 06/01/2009 12:36:35 a
2 06/01/2009 12:36:35 a
3 06/01/2009 12:36:35 a
4 07/01/2009 10:36:35 b
5 07/01/2009 10:36:35 b
6 07/01/2009 12:56:35 b
7 08/01/2009 1:56:35 a
8 08/01/2009 1:56:55 a
9 08/01/2009 1:57:00 a
10 09/01/2009 1:57:00 b
How would I return all results for each distinct value on the latest available date for that value?
So it would return
7 08/01/2009 1:56:35 a
8 08/01/2009 1:56:55 a
9 08/01/2009 1:57:00 a
10 09/01/2009 1:57:00 b
As 08/01/2009 is the max date for a and it has 3 corresponding records and 09/01/2009 is the max date for b
with 1 result