I have a table that is as follows:
id value date
---------------
a, test, 01-01-15
a, test, 01-02-15
a, test, 01-03-15
a, test1, 01-04-15
a, test1, 01-05-15
b, test, 01-01-15
b, test, 01-02-15
I need to write a query to be able to grab the latest mapping for both a & b
for instance, I want my results to be as follows:
a, test1, 01-05-15
b, test, 01-02-15
I can't seem to wrap my head around how to accomplish this
select max(date)
only returns the latest date value
and select max(date), value group by value
obviously does not return the id column