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
Sur cette page du site, vous pouvez voir la vidéo en ligne Group Items With Comma Separation | String_AGG | SQL Server Tutorial (2020) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Learn Tech with Ashish 30 mai 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 285 fois et il a aimé 6 téléspectateurs. Bon visionnage!