This video shows how to convert rows into a column with comma separate
without XML
we are using string_AGG string function
Example: - I want to group all employee name as per there JOB with comma separated
select JOB, String_AGG(EmployeeName, ', ') from Tbl_employee
Result =
JOB (String_agg result)
ADMIN JOHNSON, WASHINGTON
CEO JACKSON
ENGINEER GRANT, ADAMS
MANAGER FILLMORE, GARFIELD, HARDING
SALES I TAFT, HOOVER
TECH LINCOLN, POLK
great tutorial to learn SQL Server and T-SQL with Examples and new videos in simple language
En esta página del sitio puede ver el video en línea Group Items With Comma Separation | String_AGG | SQL Server Tutorial (2020) de Duración hora minuto segunda en buena calidad , que subió el usuario Learn Tech with Ashish 30 mayo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 285 veces y le gustó 6 a los espectadores. Disfruta viendo!