Skip to content
Official PYQ · 2010

GATE CS 2010 Q43 — Normal Forms

Explain with AI

The following functional dependencies hold for relations R(A,B,C)R(A, B, C) and S(B,D,E).S(B, D, E). 

  • B→AB \to A
  • A→CA \to C

The relation RR contains 200200 tuples and the relation SS contains 100100 tuples. What is the maximum number of tuples possible in the natural join  R⋈SR \bowtie S?

Choose one option
View worked solution

Answer: A

To find the maximum number of tuples in the natural join R⋈SR \bowtie S, we first identify the join attribute and analyze the constraints on it.

  1. Identify the Join Attribute: The common attribute between R(A,B,C)R(A, B, C) and S(B,D,E)S(B, D, E) is BB. Therefore, the natural join is performed on BB.
  2. Analyze the Functional Dependencies on RR: We are given:
    • B→AB \to A
    • A→CA \to C
    By transitivity, B→CB \to C. Since BB functionally determines all attributes of RR (i.e., B→{A,B,C}B \to \{A, B, C\}), BB is a candidate key for relation RR.
  3. Determine Tuple Uniqueness: Because BB is a candidate key of RR, the values of BB in RR must be unique. Thus, each distinct value of BB can appear at most once in RR.
  4. Calculate the Join Size: In the natural join R⋈SR \bowtie S, each tuple in SS can match with at most one tuple in RR (since BB is unique in RR). Since SS contains 100100 tuples, the maximum number of matching tuples in the join is 100×1=100100 \times 1 = 100.

Thus, the maximum number of tuples possible in R⋈SR \bowtie S is 100100.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Normal Forms questions