SyntaxFix
Write A Post
Hire A Developer
Questions
This works
declare @v int=A select * from Table_Name where XYZ=202 and dbkey=(case @v when A then 'Some Value 1' else 'Some Value 2' end)