I am having trouble in my code. I used to be on MySQL but I've migrated my codes into SQL Server.
Now I am having trouble with this GROUP_CONCAT function. I found some 'potential' equivalent but it's just not resulting on what is expected.
Here is the query:
SELECT
GROUP_CONCAT(c.namecheck SEPARATOR '; ') AS GROUPNAME
FROM db_name a
left JOIN db_employee b ON a.nameId = b.empID
left join db_civ c ON b.nameNum = c.civNum
I tried some. But as I've said, its does not output the result that what I'm expecting (as I countercheck the query in MySQL)
Expected output should be
-----------
|GROUPNAME|
-----------
|Jay; Ron; Jorge .... etc|
| |
| |
| |