Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

How to concatenate text from multiple rows into a single text string in SQL Server

SELECT STRING_AGG(Name, ', ') AS Departments
FROM HumanResources.Department;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #concatenate #text #multiple #rows #single #text #string #SQL #Server
ADD COMMENT
Topic
Name
7+9 =