Possible Duplicate:
Why does NULL = NULL evaluate to false in SQL server
If you generate a query to insert the data in table "MyTab" for column --- Age, Sex, DOB, ID
INSERT INTO MyTab
VALUES (22, '', '', 4)
What'll be the value in column Sex & DOB ? Is it NULL ?
If value is NULL then ---
SELECT * FROM MyTab
WHERE Sex=NULL
above query gives output ---- no rows selected --- why ??
if value is not NULL then ---
SELECT * FROM Mytab
WHERE Sex IS NULL
above query gives the output ---- how ??