GATE CS 2000 · SQL Queries

MCQ · 1 mark · Problem DBMS-SQL-0149

In SQL, relations can contain null values, and comparisons with null values are treated as unknown. Suppose all comparisons with a null value are treated as false. Which of the following pairs is not equivalent?
  1. A
    \(x=5\; not(not(x=5))\)
  2. B
    \(x=5 \; x \gt 4 \text{ and }x\lt6\), where \(x\) is an integer
  3. C
    \(x \neq 5\) not(x=5)
  4. D
    none of the above

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/673/gate2000-2-26

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com