How can I use CASE statement in my WHERE condition along with IN clause? I am trying following query and its giving syntax error.
SELECT * FROM tblCustomers
WHERE custCode = 'CST1'
AND CASE @accountType WHEN 'Doemstic'
THEN city IN ('hokkaido','tokyo')
ELSE city IN ('mumbai')
END
This statement gives syntax error near 'IN'
I am using SQL Server 2012