in sql check where it is empty or not 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