GATE CS 1997 · SQL Queries

MCQ · 1 mark · Problem DBMS-SQL-0152

For a database relation R(a, b, c, d), where the domains a, b, c, d include only atomic values, only the following functional dependencies and those that can be inferred from them hold\(a \rightarrow c\)\(b \rightarrow d\)This relation is
  1. A
    in first normal form but not in second normal form
  2. B
    in second normal form but not in first normal form
  3. C
    in third normal form
  4. D
    none of the above

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

Show the worked solution\(a\) and \(b\) never appear on the right side, and \((ab)^+=abcd\), so the only key is \(ab\). The non-prime attributes are \(c\) and \(d\). \(a\to c\) and \(b\to d\) make non-prime attributes depend on part of the key. These are partial dependencies, so the relation is not in 2NF. All domains are atomic, so it is in 1NF.The same question was asked again in UGC-NET (January 2017) and ISRO 2018.Answer: A

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