Hi everyone, how to check column is null or not null in conditional?
I need to convert Dynamic to Static SQL
Dynamic SQL:
SQL
IF @typeWeb = 1
BEGIN
SET @where = @where + ' AND p.Dealer is null '
END
ELSE
IF @typeWeb = 0
BEGIN
SET @where = @where + ' AND p.Dealer is not null '
ENDHow can i type this code?


Rajanikant HawaldarRank #110 · 20.2K reputationPosted Aug 27, 2022, 10:02 AM EDT