So we have a roster table like this:
Course, Class, Period, Location, Teacher ID, Student ID
ECC31|Counting and Cardinality (K3)|2(B)|No data|100|1248|15179
ECC31|Counting and Cardinality (K3)|2(B)|No data|100|1248|15244
ECC31|Counting and Cardinality (K3)|2(B)|No data|100|1248|15257
.....
Same Class/Different Students. Is there an SQL approach to have it concatenated with commas? Say one row for each class? Was thinking of Group by Function with a concatenator?
Example of output
ECC31|Counting and Cardinality (K3)|2(B)|No data|100|1248|15179,15244,15257
ECC32|Counting and Cardinality 2 (K3)|3(B)|No data|100|1267|15123,15143,15432
Thanks!