Normalization

GATE DA previous year questions · 3 questions

GATE DA 2025 | Question 16

MCQ · 1 mark · −0.33

If a relational decomposition is not dependency-preserving, which one of the following relational operators will be executed more frequently in order to maintain the dependencies?

Options for GATE DA 2025 | Question 16

Explanation

Answer: (C)

A functional dependency is cheap to enforce when all its attributes sit in one relation of the decomposition: each insert or update is checked against that relation alone. In a decomposition that is not dependency-preserving, some dependency \(X \to Y\) cannot be derived from the dependencies holding within the individual relations, because its attributes are spread over several of them. To check it after every change, those relations must first be joined to bring \(X\) and \(Y\) back together, so joins are executed far more often. Selection, projection and set union cannot reunite attributes stored in different relations.

Answer: C

GATE DA 2025 | Question 57

MSQ · 2 marks

Consider a database relation R with attributes ABCDEFG, and having the following functional dependencies:

\[ \mathrm{A} \rightarrow \mathrm{BCEF} \qquad \mathrm{E} \rightarrow \mathrm{DG} \qquad \mathrm{BC} \rightarrow \mathrm{A} \]

Which of the following statements is/are correct?

Options for GATE DA 2025 | Question 57

Explanation

Answer: (B), (D)

Find the keys with attribute closures.

  • \(\mathrm{A}^{+}\): A \(\rightarrow\) BCEF, then E \(\rightarrow\) DG, so \(\mathrm{A}^{+} = \mathrm{ABCDEFG}\) and A is a key.
  • \(\mathrm{BC}^{+}\): BC \(\rightarrow\) A, and everything follows as above. \(\mathrm{B}^{+} = \mathrm{B}\) and \(\mathrm{C}^{+} = \mathrm{C}\), so BC is a candidate key.
  • \(\mathrm{E}^{+} = \mathrm{DEG}\), so E is not a key.

A appears on a right side only in BC \(\rightarrow\) A, and B and C are determined only by A, so every key contains A or both B and C. The candidate keys are exactly A and BC: B holds, while A and C fail.

In E \(\rightarrow\) DG the left side E is not a superkey, so R is not in BCNF and D holds.

Answer: B, D

GATE DA 2024 | Question 46

MSQ · 2 marks

Given the relational schema \(R = (U, V, W, X, Y, Z)\) and the set of functional dependencies:

\[\{U \to V, U \to W, WX \to Y, WX \to Z, V \to X\}\]

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

Options for GATE DA 2024 | Question 46

Explanation

Answer: (A), (B), (D)

Compute attribute closures.

  • \(\{V, W\}^{+}\): \(V \to X\) adds \(X\), and then \(WX \to Y\) and \(WX \to Z\) add \(Y\) and \(Z\). So \(\{V, W\}^{+} = \{V, W, X, Y, Z\}\).
  • \(\{W, X\}^{+} = \{W, X, Y, Z\}\), straight from the two given dependencies.

Hence \(VW \to YZ\) (A) and \(VW \to Y\) (D) hold, and \(WX \to YZ\) (B) is the union rule applied to \(WX \to Y\) and \(WX \to Z\). But \(U\) is not in \(\{V, W\}^{+}\): no dependency has \(U\) on its right-hand side, so only sets containing \(U\) determine it, and C cannot be derived.

Answer: A, B, D