I have a table called customer_age that looks like this:
ID 1 2 3 4 5 6 7 8 9 NAME JIM JIM JIM NICK NICK NICK Paul Paul Paul VALUE 20 13 12 10 20 8 4 24 14
and I want to display only the first record from each name. Something like that
ID 1 4 7 NAME JIM NICK Paul VALUE 20 10 4
So far, I have not been able to handle this. I am using SQL Server 2005 Any help would be appreciated ...
source share