Link to home
Start Free TrialLog in
Avatar of markej
markejFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Clearing up data

Hi I have a database Sql Server database with the following sample data (see attached file) I am trying to create a stored procedure that will allow me to just show one record for each person/team position I've included the seasoned for sake of completeness BUT it's not needed. WHAT is needed is however ONLY one id, firstname, surname, teamposition record.

I've tried using a select distinct BUT the multiple ID's wreck this, I need some help on selecting just the 1st copy of each of the multiple records ie instead of having :

24347      2      47      Stewart      Clifton      1      2      
24348      2      47      Stewart      Clifton      1      2      

I ONLY want one entry

HELP!
SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of markej

ASKER

Thank  you all for help and suggestions that seems to have worked