sql server - CASE when clause using -


declare @custid varchar(50) = null  select *  items  showitemnlycusloggedinweb = case when                                         @custid = not null                                         showitemnlycusloggedinweb=0 or isnull 

this not working me.

you may looking

where 1 = case when @custid not null , showitemnlycusloggedinweb = 0  1                when @custid null , showitemnlycusloggedinweb in (0,1)  1                else 0           end  

Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -