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

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

minify - Minimizing css files -

php - How to remove letter in front of the word laravel -