Hi There,
Is it possible to have two options on a WHERE clause? Both options below don't work.
Declare @ID VarChar (25)
Set @ID = 'WES78'
Select * From Matters
Where Case @ID When '' Then ID like '%' Else ID like @Ex_ID + '-%' End
Declare @ID VarChar (25)
Set @ID = 'WES78'
Select * Matters
Case @ID When '' Then Where ID like '%' Else Where ID like @ID + '-%' End
Thanks
Eugene