Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple where statements
Message
 
 
To
18/02/2005 11:04:09
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00988288
Message ID:
00988358
Views:
34
You're welcome.

>WOW!
>That was clean and beautiful!
>Thanks Sergey
>
>>Try
>>SELECT *
>>  FROM vw.foo  f
>>  WHERE f.cost_center LIKE
>>    CASE WHEN @cost_center = 'ALL' THEN '%' ELSE @cost_center END
>>
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform