Direct check for null value in SQL