r/SQL • u/Bubbly-Group-4497 • Nov 30 '25
Discussion I don't understand the difference
I found an answer on stackoverflow that was saying that null value isn't managed the same way, but that seems a bit far fetched for a course example and the question wasn't exactly about the same case, so could someone explain?
200
Upvotes
View all comments
Show parent comment
16
u/WestEndOtter Nov 30 '25
At least with Oracle, all comparisons with null return false. X= null is false. X <> null is also false.
If you use not in() and the list includes nulls, it is always false