sql not null or empty check code example
Example 1: sql check for null and empty string
IF ISNULL(@param) OR @param = '' THEN doSomething...
Example 2: sql if empty then
SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn)
FROM SomeTable
IF ISNULL(@param) OR @param = '' THEN doSomething...
SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn)
FROM SomeTable