[sql] case statement in where clause - SQL Server