Back to Browse

SQL Query - Convert data from rows into single concatenated and delimited string | STRING_AGG

12.7K views
Jun 16, 2022
5:22

In this video tutorial, we write a query using STRING_AGG function to convert data from rows into a single concatenated string with a specified delimiter. All the SQL scripts and code related to this video tutorial can be found here - https://know-star.blogspot.com/2022/06/sql-convert-data-from-rows-into-single.html If your version of SQL Server does not support this function, the below approach using for xml and stuff might work for you - https://www.youtube.com/watch?v=aDH4X2nh9-8&t=762s Other similar functions - STRING_SPLIT - https://www.youtube.com/watch?v=4pdNjE98R3Q How to install SQL Server for practice? https://www.youtube.com/watch?v=ncj0EDzy_rw&t=298s Check out the complete list of SQL Query Interview Questions - https://www.youtube.com/watch?v=AhapksIsHxg&list=PL2-GO-f-XvjBl5fpzdfYaPW28PwsLzLc4 Best Data Science / Analytics / SQL courses Learn SQL Basics for Data Science Specialization https://imp.i384100.net/qnXYk5 Data Science Fundamentals with Python and SQL Specialization https://imp.i384100.net/mgVYre Python for Everybody Specialization https://imp.i384100.net/DVz7Aj Google Data Analytics Professional Certificate https://imp.i384100.net/OR37oQ Coursera Plus - Data Science Career Skills https://imp.i384100.net/c/3299742/1320998/14726 Please do not forget to like, subscribe and share. For enrolling and enquiries, please contact us at Website - http://knowstar.org/ Instagram - https://www.instagram.com/learn.knowstar/ Facebook - https://www.facebook.com/knowstartrainings/ Linkedin - https://www.linkedin.com/company/knowstar-e-learning-solutions/?viewAsMember=true Email - [email protected]

Download

1 formats

Video Formats

360pmp47.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

SQL Query - Convert data from rows into single concatenated and delimited string | STRING_AGG | NatokHD