IAE Academy

GATE 2024 DA Q.46: solution and answer

GATE 2024 · DAQ.46 · 2 marks · MSQ

Given the relational schema and the set of functional dependencies:

Which of the following functional dependencies can be derived from the above set?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

See the question in the paper

Answer and solution

ANSWER

The derivable dependencies are , and , that is options (A), (B) and (D).

Official answer: A, B, DSource: Official answer key, GATE 2024 DA (IISc Bengaluru)

  1. A dependency can be derived from a set exactly when , where is the closure of under . So compute the closures needed.

  2. Closure of . Start with .

  3. Apply : the left side is in the set, so add . The set becomes .

  4. Apply and : and are both in the set, so add and . The set becomes .

  5. appears on the right side of no dependency, so it can never be added. The other dependencies (, ) need on the left and add nothing new. Hence .

  6. (A) : , so it can be derived.

  7. (C) : , so it cannot be derived.

  8. (D) : , so it can be derived.

  9. (B) : and are given. By the union rule (if and then ), holds. Equivalently, .

  10. The derivable dependencies are (A), (B) and (D).

KEY IDEA

is derivable exactly when . Compute the closure of the left side by repeatedly firing every dependency whose left side is already inside the set. Here is what lets reach and so pull in and .

WATCH OUT FOR

Stopping the closure of at and forgetting to fire and afterwards. Another slip is to think holds because determines and . The converse does not follow, since nothing determines .

From the GATE 2024 DA paper. Every question of this paper · Download the full paper · All 6 Normal forms questions, with notes

More Normal forms questions