I have a table with records that have blank/null data in certain columns and I want to find records where ALL columns have a value other than blank/null without creating a really long SQL statement.
EG:
SELECT * FROM table
WHERE col1 IS NOT NULL AND col2 IS NOT NULL AND col3 IS NOT NULL AND...
Is there any way to shorten this? Or is there any way to do this differently (with an SQL procedure maybe?)
The only thing I would do to shorten it would be to do something like:
SELECT * FROM table1 WHERE (val1 AND val2 AND val3 AND val4) IS NOT NULL