How to check for null/empty/whitespace values with a single test?
SELECT column_name from table_nameWHERE RTRIM(ISNULL(column_name, '')) LIKE ''
ISNULL(column_name, '')
will return '' if column_name is NULL, otherwise it will return column_name.
UPDATE
In Oracle, you can use NVL
to achieve the same results.
SELECT column_name from table_nameWHERE RTRIM(NVL(column_name, '')) LIKE ''