Now I am with MS SQL Server 2008. I would like to know if it is possible to select top record of same group.I have 3 fields in my table. Here is my table
ID GroupNo FieldOfInterest
0001 G1 Football
0002 G2 Football
0003 G2 Basketball
0004 G3 Golf
0005 G3 Swimming
I wanna select the record from this table like that
ID GroupNo FieldOfInterest
0001 G1 Football
0002 G2 Football
0004 G3 Golf
How can I do this? Please help me .
With Regards
Assuming the “top record” means the record with the samllest ID, as you have not provided an order.