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
Post a Comment