Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Nightfall
Starting Member
3 Posts |
Posted - 2008-07-02 : 10:13:21
|
Hello all. I have a T-SQL problem which I will try to describe as best as I can.tblPerson-------columns: id,namedata: 1, John2,Alex3,Gustblnationality-------------columns: id,nationalitydata: 101,Greek102,Italian103,SpanishtblPersonid_to_nationalityId-------columns: personID,nationalityiddata: 1,1011,1022,1033,101That means that a person can have 2 nationalities. I want my end result to be like thisJohn | Greek,ItalianAlex | SpanishGus | GreekThe first column will contain the Person's name and the second the person's nationalities comma separated.Any ideas ? Thanks in advance ! |
|
jsmith8858
Dr. Cross Join
7423 Posts |
|
|
|
|
|
|