Can anyone help me make this query work for sql server 2014. This is working on Postgresql and probably on sql server 2017. On Oracle it is listagg instead of string_agg.
Here is the sql:
select
string_agg(t.id,',') AS id
from Tabel t
I checked on the site some xml option should be used but I could not understand it.