There are two tables,
Table A
A_ID A_Field
1 blah1
2 blah2
3 blah3
........
============================================================
Table B (A_ID is foreign key references Table A's A_ID)
A_ID B_Field
1 a
1 b
1 c
2 a
2 b
2 c
What is the BEST way to get result like below:
A_ID A_Field B_Field
1 blah1 a,b,c
2 blah2 a,b,c
Thanks a lot for the replies, they all works, however, there is one more request, "For XML" dows NOT work on SQL SERVER 2000, unfortunately my domain service's DB is SQL Server 2000, is there a simple query work on SQL SERVER 2000?? Thanks!