Is there an ansi sql function that will return a set of values, such that :
select id, score from tests
which normally returns something like:
id score
-- -----
1 A
1 B
2 A
2 D
3 C
would instead return:
id score
-- ------------
1 A,B
2 A,D
3 C
I can achieve this if there is a set number of scores, however, in this case there are an undefined number of scores for each id.
Thanks for any clues.
Kris
select id, score from tests
which normally returns something like:
id score
-- -----
1 A
1 B
2 A
2 D
3 C
would instead return:
id score
-- ------------
1 A,B
2 A,D
3 C
I can achieve this if there is a set number of scores, however, in this case there are an undefined number of scores for each id.
Thanks for any clues.
Kris