catchingup
Technical User
I am writing a stored procedure in SQL2000.
The result set returns a set of information that was a single row per instance exceptin the SUPPORTS column.
Some individuals have multiple entries so it creates multiple rows (a sampling of the data is below):
ID NAME SUPPORTS HIREDATE
OFTC5820 Wilson Karens 12-30-06
OFTX7783 Watkins Jarvis 11-15-05
OFTX7783 Watkins Spellman 11-15-05
OFTX7783 Watkins Kneeland 11-15-05
OFHT2379 Washdon Jackson 05-01-04
OFHT2379 Washdon Michels 05-01-04
I need to modify my query so that the multiple line entries are deleted and the SUPPORTS entries are combined into a single entry (like this):
ID NAME SUPPORTS HIREDATE
OFTC5820 Wilson Karens 12-30-06
OFTX7783 Watkins Jarvis, Spellman, Kneeland 11-15-05
OFHT2379 Washdon Jackson, Michels 05-01-04
I believe this can be done but am not certain how to go about it.
Any suggestions are appreciated.
The result set returns a set of information that was a single row per instance exceptin the SUPPORTS column.
Some individuals have multiple entries so it creates multiple rows (a sampling of the data is below):
ID NAME SUPPORTS HIREDATE
OFTC5820 Wilson Karens 12-30-06
OFTX7783 Watkins Jarvis 11-15-05
OFTX7783 Watkins Spellman 11-15-05
OFTX7783 Watkins Kneeland 11-15-05
OFHT2379 Washdon Jackson 05-01-04
OFHT2379 Washdon Michels 05-01-04
I need to modify my query so that the multiple line entries are deleted and the SUPPORTS entries are combined into a single entry (like this):
ID NAME SUPPORTS HIREDATE
OFTC5820 Wilson Karens 12-30-06
OFTX7783 Watkins Jarvis, Spellman, Kneeland 11-15-05
OFHT2379 Washdon Jackson, Michels 05-01-04
I believe this can be done but am not certain how to go about it.
Any suggestions are appreciated.