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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -