Example Table
ID |ID2 |DATE |COST
----|----|------|----
1 |1 |17 Mar|17
2 |1 |30 Mar|12
3 |2 |18 Mar|18
4 |2 |30 Mar|31
5 |3 |12 Mar|5
What i'd want to return is:
ID |ID2 |DATE |COST
----|----|------|----
2 |1 |30 Mar|12
4 |2 |30 Mar|31
5 |3 |12 Mar|5
That is only the rows where the date is the most recent for each of ID2, i hope that makes sense
Andy