[SalesForce] SQL Incorrect syntax near ‘)’

I'm trying to write a SQL query in a marketing cloud automation studio activity

SELECT
  *
FROM
  [table 1]
WHERE
  [field 1] IN (
    'a2F6F000002WUVmUAO',
    'a2F6F000002WTqbUAG',
    'a2F6F000002WT8DUAW',
    'a2F6F000002WT9QUAW',
    'a2F6F000002WSghUAG',
    'a2F6F000002WTAKUA4',
  )

However I keep getting a Incorrect syntax near ')'. error.

Does anyone know how to fix this error? I can't seem to find anything wrong with the syntax of my sql

Best Answer

Remove the last , before the bracket. It's the last item and doesnt need to be followed by a ,

Related Topic