Я изображающей вам нужно их всех, как одну ячейку, а не PIVOT их ,
Попробуйте
With
MyTable as
(
Select 1 Id, 'Contacted the P6 Admin Reps to find out what to do.' Notes
Union Select 2, 'Sent and email to request status.'
Union Select 3, 'updated ticket and confirmed issue was resolved.'
)
Select
(
SELECT SUB.Notes + ' '
FROM MyTable SUB
FOR XML PATH('')
) TextValue
Вот ответ я получаю:
TextValue
---------------------------------------------------------------------------------------------------------------------------------------
Contacted the P6 Admin Reps to find out what to do. Sent and email to request status. updated ticket and confirmed issue was resolved.
(1 row(s) affected)
, какие базы данных, пожалуйста? –
Шаг 1 - укажите свой движок базы данных. –
SQL Server, я обновил теги. –