Machine-translated by Google. Questions are authored in English.
Top

Discussion

Consider the join of a relation R with relation S. If R has m tuples and S has n tuples, then the maximum size of join is:

  • A.mn
  • B.m+n
  • C.(m+n)/2
  • D.2(m+n)

Answer: A

Correct answer: mn

A join is a selection applied to the Cartesian product, so it can never return more tuples than the product itself, which has \(m \times n\). That maximum is reached only when the join condition matches every pair - in effect a cross join. A typical equijoin on a foreign key returns far fewer.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.