I need to have a conditional where clause that operates as so:
Select * From Table If (@booleanResult) Begin Where Column1 = \'value1\' End Else Begin W
To provide a shorter answer:
Select * From Table Where Column1 = 'value1' and coalesce(column2, '') = (case when @BooleanResults = 0 then 'value1' else coalesce( column2, '') end)