SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


how to concatenate rows and join in another table


how to concatenate rows and join in another table

Author
Message
ernesto.yandoc
ernesto.yandoc
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 1
Hi to all,

Please bear with me. anyways, this is the tables i have

Table1

Name Company ID

Mike ABC 1

Joey CBA 2

Table2

OtherVisaID TypeID Remarks

1 1 test1

1 2 test2

2 3 test3

2 2 test4

2 1 test5

Table3

TypeID Description

1 US

2 UK

3 SG


Result should be like this..

ID Name Company List of Visa

1 Mike ABC US;UK

2 Joey CBA US;UK;SG


so as you can see it was separated by ";" hope you understand my question..


thanks in advance.
Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)

Group: General Forum Members
Points: 5178 Visits: 4076
Hi Welcome to SSC forum,
please Dont cross post , it waste the time of people

the original thread is http://www.sqlservercentral.com/Forums/Topic1407712-392-1.aspx

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search