| > Personally, I think that the existing PostgreSQL behavior (NULLS DISTINCT) is the "right" one SQL is old enough and this debate so unsettled still that I think it should be clear there isn't a categorically right behavior here anymore than there is a clear winner between tabs and spaces. As an example of the irreconciliable weirdness of NULL, consider that "NULL = NULL" is false, and so is "NULL != NULL", while rows with NULL still group together in GROUP BY. I appreciate you giving folks the option. |
This isn't quite true - these comparisons don't evaluate to false, they evaluate to NULL.
I intuitively think of NULL as "unable to compute," a generalized NaN.