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
In questa pagina del sito puoi guardare il video online Group Items With Comma Separation | String_AGG | SQL Server Tutorial (2020) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Learn Tech with Ashish 30 maggio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 285 volte e gli è piaciuto 6 spettatori. Buona visione!