I want to delete all the records which don't have Remarks as 'Invalid Process' & other 2 conditions as below code :-
DELETE FROM Entry WHERE EmployeeId = 474 AND Entry_Date = '2016-10-01'
AND Remarks <> 'Invalid Process'
But problem here is it doesn't delete the records which have NULL as value. I want to delete all except Remarks as 'Invalid Process'.
Add IS NULL
condition. <>
operator cannot check NULL
values
DELETE FROM Entry WHERE EmployeeId = 474 AND Entry_Date = '2016-10-01'
AND (Remarks <> 'Invalid Process' or Remarks IS NULL)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With