Need your help
My problem :
QARowID RowID QuestionID QuestionTag QuestionTitle QuestionAnswer
1 4 0000-000000000000 DEFAULT_001 Q1
2 4 0000-0000-000000000000 DEFAULT_002 Q2
3 4 0000-0000-000000000000 DEFAULT_003 Q3
4 7 0000-0000-000000000000 DEFAULT_001 Q1 asd
5 7 0000-0000-000000000000 DEFAULT_002 Q2 cx xc
6 7 0000-0000-000000000000 DEFAULT_003 Q3 wer
7 9 0000-0000-000000000000 DEFAULT_001 Q1 c xc
8 9 0000-0000-000000000000 DEFAULT_002 Q2 hh
9 9 0000-0000-000000000000 DEFAULT_003 Q3 dd
10 10 0000-0000-000000000000 DEFAULT_001 Q1 rr
Result output
Questionandanswer
Q1:asd,cxc,rr
Q2:cxxc,hh
Q3:wer,dd
I am working on sql server 2000 ,i used cursor for this but giving me performance issue.
I cannot user for xml path in 2000 not even CTE also.
Please suggest with best option what can i do to get the output