Is it possible to use in command based on case statement
I have tried something like this
@Id int
Select *
From Table
Where StatusId in( case when Id =1 then 1 else 1,3 end)
and
Select *
From Table
Where StatusId in case when Id =1 then (1) else (1,3) end
Any Ideas!!
No, you need to solve this in a different way:
Variations of this pattern are possible.