I am stuck in a MS SQL SERVER 2012 query. I want to write several values ββin the "CASE" statement in the "IN" statement of the WHERE clause, see the following:
WHERE [CLIENT] IN (CASE WHEN T.[IS_PHYSICAL] THEN 2421, 2431 ELSE 2422, 2432 END)
The problem here is 2421, 2431 - they cannot be separated by commas. is there any solution to write this in another way? thanks.
source share