SQL & Queries

Answer & solution
Answer: C (no official key was published)
Step 1: For an ordinary nonnull x, inequality x≠5 agrees with negated equality. But at x=NULL, the stipulated direct comparison x≠5 is FALSE, while x=5 is FALSE and its negation is TRUE. Thus C differs.
Step 2: Double negation still restores the original Boolean value, so A remains equivalent. In B, both comparisons on NULL are FALSE, making the conjunction FALSE just like equality; for nonnull integers the open interval(4,6) contains only 5.
Therefore only C among these pairs exposes the inconsistency. Standard SQL uses UNKNOWN precisely to avoid treating a negated unknown comparison as true.