My query looks like this:
SELECT
req.number
, task.number
, usr.vendor
FROM req
LEFT JOIN task on req.sys_id = task.req_item
LEFT JOIN usr on usr.sys_id = task.assigned_to
Results look like this:
I want resulst to look like this:
I've been trying to use STUFF but I'm not getting it. Can anyone help?
Thank you
Great explanation here:
How Stuff and 'For Xml Path' work in SQL Server?