Mysql Query
SELECT * FROM `jobc_labor` WHERE type='Workshop' AND RO_no='4' AND (status!='Job Not Done' OR status!='Jobclose')
Also tried
SELECT * FROM `jobc_labor` WHERE type='Workshop' AND RO_no='4' GROUP BY `RO_no` HAVING status!='Job Not Done' OR status!='Jobclose'
AND tried with <> but same result
SELECT * FROM `jobc_labor` WHERE type='Workshop' AND RO_no='4' AND (status<>'Job Not Done' OR status<>'Jobclose')
My question is why mysql giving my output of the rows which has status of 'job Not Done and Jobclose??? What I am doing wrong. I want to write the query which check wether all labor type with workshop has jobclose or job not done OR they are empty which means the work is in process. please help.