This is my table -
item item_id components
chair 1001 wood
chair 1001 screw
chair 1001 paint
book 1002 pages
book 1002 bind
Based on the item and item_id, I want to concat components together using comma (,). For example i should get following output
item item_id components
chair 1001 wood,screw,paint
book 1002 pages,bind
Below is the code that I have right now. I am running this on SFMC and i get an error - Error saving the Query field.Incorrect syntax near 'SEPARATOR'
SELECT item_id, GROUP_CONCAT(components SEPARATOR ',')
FROM table
GROUP BY item_id
Pleaser can anyone help me a way to run this query without errors and get the desired results?