|
|
|
|
|
by munk-a
845 days ago
|
|
Do you mean that NULL <> NULL and NULL infects boolean logic? NULL is always an awkward thing to deal with - how you want to handle it depends on the specific thing you're trying to accomplish. I'd probably prefer it if NULL equaled NULL when dealing with where conditions but it actually makes join evaluations a lot cleaner - if NULL equaled NULL then joining on columns with nulls would get really weird. At the end of the day IS NULL and IS DISTINCT FROM/IS NOT DISTINCT FROM exist so you can handle cases where it'd be weird. |
|
unfortunately they were not invented at the time sql was created