This question already has an answer here:
i am have more than 100000 data in MySQL i have gender column some have female,male and null .i am writing query for showing all he data unfortunately it not showing the data which has null it only showing data with male and female below is my query can anyone tell where i went wrong thanks
SELECT DISTINCT contact.`id` , contact.`contactgroup` , contact.`media` , contact.`media2` , contact.`email1` , contact.`nationality` , contact.`country3` , contact.`twon` , contact.`area` , contact.`gender` , contact.`married` , contact.`children` , contact.`driverslicense`
FROM contact
WHERE isdeleted =0
AND (
`gender` = 'female'
OR `gender` = 'male'
OR `gender` = ''
OR `gender` = 'NULL'
)
LIMIT 180 , 30
</div>