UGC-NET Jul 2016 · SQL Queries

MCQ · 2 marks · Problem DBMS-SQL-0005

In a relational database model, NULL values canbe used for all but which one of the following?
  1. A
    To allow duplicate tuples in the table by filling the primary key column(s) with NULL
  2. B
    To avoid confusion with actual legitimate data values like 0 (zero) or integer columns and " (the empty string) for string columns
  3. C
    To leave columns in a tuple marked as "unknown" when the actual value is unknown
  4. D
    To fill a column in a tuple when that column does not really  "exist" for that particular tuple

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

Show the worked solutionPrimary key columns may never be NULL (entity integrity), so NULLs cannot be used to make duplicate tuples possible. This is the one use that is not allowed.(B) NULL is distinct from 0 and from the empty string — a legitimate use.(C) NULL can mean "value unknown" — a legitimate use.(D) NULL can mean "not applicable" to this tuple — a legitimate use.Answer: A

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