I have an oracle DB query where I want to fetch all such records from a table where the value of DECISION is not equal to DISCARD. I ran the below query:
select * from TABLE where DECISION != 'Discard'
I had two records in my database but for both the DECISION was null ,which is not equal to DISCARD. However, I did not get any record.
So, I had to change the query to below which fetched the records successfully.
select * from TABLE where (DECISION != 'Discard' or DECISION is null)
I am confused about what is the difference between the two.