Skip to content
Official PYQ · 1999

GATE CS 1999 Q1.18 — Relational Model: Relational Algebra

Explain with AI

Consider the join of a relation RR with a relation SS. If RR has mm tuples and SS has nn tuples then the maximum and minimum sizes of the join respectively are

Choose one option
View worked solution

Answer: B

To find the maximum and minimum sizes of the join of relation RR (with mm tuples) and relation SS (with nn tuples), we consider the behavior of the join condition:

  1. Maximum Size (mnmn): The maximum size occurs when every tuple in RR matches with every tuple in SS. This happens if:
    • The join is a Cartesian product (cross join), or
    • The join attribute has the exact same value across all mm tuples of RR and all nn tuples of SS.
    In this scenario, the total number of resulting tuples is mimesn=mnm imes n = mn.

  2. Minimum Size (00): The minimum size occurs when there are no matching values between the join attributes of RR and SS (i.e., the intersection of the join attribute values is empty). In this scenario, no tuples satisfy the join condition, resulting in 00 tuples.

Therefore, the maximum and minimum sizes of the join are mnmn and 00, respectively.

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

Published
Report a correction
Keep exploringMore Relational Model: Relational Algebra questions