Can anyone tell me what's wrong with my code?
SELECT
*
FROM
TABLE.NAME
WHERE
TICKET_GROUP IN
CASE WHEN ticket_created_at <= CAST('2022-04-01' AS DATE)
THEN (1500003613882, 360013692813, 114095263234)
ELSE (1500001610322, 360005931333, 1260811380530)
END
I get this error
line 8:20: mismatched input 'IN'. Expecting: 'AND', 'EXCEPT', 'FETCH', 'GROUP', 'HAVING', 'INTERSECT', 'LIMIT', 'OFFSET', 'OR', 'ORDER', 'UNION', <EOF>
I tried changing it to '=' instead of IN but it didn't worked.