Which SQL would be faster to validate if a particular column has a null value or not, why?
1) SELECT * FROM TABLE1 WHERE COL1 IS NULL
Execute this query and then check if you are able to read any records. If yes there are null values.
2) SELECT COUNT(COL1) FROM TABLE1 WHERE COL1 IS NULL
Read the count which is returned to determine if there are any null records
Working with Oracle10g and SQLServer2005.