Link to home
Start Free TrialLog in
Avatar of KANEDA 0149
KANEDA 0149Flag for United States of America

asked on

TSQL Multiple Rows Into 1 Row

Hello, need help to return multiple rows into 1 singular column with semicolon delimiter.  I tried the FOR XML PATH but got stuck because my original query requires a nested join.  Below is an example of the current results and my expected results.  Thanks in advance!

select a.WorkflowID, b.ResourceName
from table1 a
left join (select distinct ResourceID, ResourceName
			from table2
			where ResourceType = 4) b on a.ConstructID = b.ResourceID
where a.ConstructType = 4

Open in new window


User generated image
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KANEDA 0149

ASKER

Thank you ste5an, that worked!
Thank you, that did it!