check if value is empty in sql query 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