My table is setup like
site date level
a 2014-4-09 80%
a 2014-8-15 70%
b 2014-5-23 95%
c 2014-1-20 NULL
I want to select any thing that level IS NOT NULL and the most current date for each site. I have tried max(date) but that just gets me a single date from the table.
I would like to see as a result the most recent record for each site.
a 2014-8-15 70%
b 2014-5-23 95%