Hi,
Having some trouble getting it all together.
I have a table in which i need to get Distinct names based on latest date.
This is what the table looks like;
Table Scores;
---------------------------------------------------------------------
| Name | Date | High Score | Medium Score | Low Score |
---------------------------------------------------------------------
| Patrik | 2011-05-04 | 25 | 28 | 21 |
--------------------------------------------------------------------
| Patrik | 2011-05-28 | 30 | 32 | 28 |
--------------------------------------------------------------------
| Stefan | 2011-06-28 | 20 | 15 | 10 |
--------------------------------------------------------------------
| Stefan | 2011-07-28 | 23 | 19 | 10 |
--------------------------------------------------------------------
I need to get the latest high Score for each Person based on 'Date'.
So basically, i want the values "Patrik - 30" & "Stefan - 23"
I've tried many different queries but i just can't get it to work.
Thanks