VRao
10-09-2007, 05:01 AM
Below are my sample records in a SQL table.
FName ........ Points.............. Date
Toyota ............150............ 05/12/2005
Honda ............115 ............10/10/2003
Mitsubishi.......120............ 06/06/2005
Toyota.............130.............01/09/2005
Honda ............135 ............11/07/2003
Mitsubishi ......110.............16/06/2005
Toyota ............160.............25/11/2005
Honda .............125............12/12/2003
Mitsubishi........110 ...........26/02/2005
I want to get the result as below.
Toyota ...........160 ..... 25/11/2005
Honda ........... 135 ..... 11/07/2003
Mitsubishi...... 120 ...... 06/06/2005
How can i get the TOP 1 records for each FName column?
Please help. Thx.
FName ........ Points.............. Date
Toyota ............150............ 05/12/2005
Honda ............115 ............10/10/2003
Mitsubishi.......120............ 06/06/2005
Toyota.............130.............01/09/2005
Honda ............135 ............11/07/2003
Mitsubishi ......110.............16/06/2005
Toyota ............160.............25/11/2005
Honda .............125............12/12/2003
Mitsubishi........110 ...........26/02/2005
I want to get the result as below.
Toyota ...........160 ..... 25/11/2005
Honda ........... 135 ..... 11/07/2003
Mitsubishi...... 120 ...... 06/06/2005
How can i get the TOP 1 records for each FName column?
Please help. Thx.