[tt]Hello,
I have a table Tab1:
Name Year Value
-----------------------
John 2010 1000
Charles 2008 500
Charles 2001 800
John 2003 600
Mary 2012 2500
And need to get the following results:
Name Year Value
-----------------------
Charles 2008 500
John 2010 1000
Mary 2012 2500
As you can see, for each name I need to get the last record of the year.
Does anyone know how to get this?
Thanks.[/tt]
I have a table Tab1:
Name Year Value
-----------------------
John 2010 1000
Charles 2008 500
Charles 2001 800
John 2003 600
Mary 2012 2500
And need to get the following results:
Name Year Value
-----------------------
Charles 2008 500
John 2010 1000
Mary 2012 2500
As you can see, for each name I need to get the last record of the year.
Does anyone know how to get this?
Thanks.[/tt]