I have a case where if my column has NULL value or blank value I have to return '-1'. I have NULL check as follows
ISNULL(IEF.Col1,'-1').
How can i check for blank value and null value(as above) at the same time. Means, if the column has blank value still in select -1 should be returned and if NULL also -1 should be returned.
You can treat empty as null with
NULLIF
: