sql where blank or null code example
Example 1: sql not null
SELECT column_name FROM table_name
WHERE column_name IS NOT NULL;
Example 2: sql check for null and empty string
IF ISNULL(@param) OR @param = '' THEN doSomething...
SELECT column_name FROM table_name
WHERE column_name IS NOT NULL;
IF ISNULL(@param) OR @param = '' THEN doSomething...