Check out example codes for "group_concat sql server". It will help you in understanding the concepts better.

Code Example 1

SELECT STRING_AGG(column_name, ',') AS Result
FROM table_name

Code Example 2

STRING_AGG ( expression, separator ) [ <order_clause> ]

<order_clause> ::=   
    WITHIN GROUP ( ORDER BY <order_by_expression_list> [ ASC | DESC ] )
    SELECT STRING_AGG(Genre, ',') AS Result
FROM Genres;
Result:

Result                                      
--------------------------------------------
Rock,Jazz,Country,Pop,Blues,Hip Hop,Rap,Punk

Learn ReactJs, React Native from akashmittal.com