N
news.microsoft.com
Hello All,
I have table with two fields,
Field ID1 can repeat but not ID2. ID2 is unique primary key
Both have string data type
Table T1
----------
ID1 ID2
x x1
x x2
x x3
y y1
y y2
Now I want to query something like
Select ID1, SUM_STRING(ID2) from T1 Group by ID1
but as you know, it is not possible to get sum of string
I want result as
x x1,x2,x3
y y1,y2
I am stuck
Is there anyway, this could be achieved?????
Best Regards,
Pravin
I have table with two fields,
Field ID1 can repeat but not ID2. ID2 is unique primary key
Both have string data type
Table T1
----------
ID1 ID2
x x1
x x2
x x3
y y1
y y2
Now I want to query something like
Select ID1, SUM_STRING(ID2) from T1 Group by ID1
but as you know, it is not possible to get sum of string
I want result as
x x1,x2,x3
y y1,y2
I am stuck
Is there anyway, this could be achieved?????
Best Regards,
Pravin