This is my data:
Im trying the following code:
SELECT *,
STRING_AGG(SUBTIPO_PRODUCTO, ' | ')
WITHIN GROUP (ORDER BY ORDEN_PRODUCTOS) PRODUCTOS
FROM #ORDEN_PRODUCTOS
and I'm getting the following error:
'STRING_AGG' is not a recognized built-in function name.
Is string_agg
locked for SMSS 17? Is the code wrong?