Question:

Which of the following is true for a natural join between two relations \( R(A, B) \) and \( S(B, C) \)?

Show Hint

In a natural join, common attributes are matched and appear only once in the result. Always check for schema compatibility before applying a natural join.
Updated On: Jun 8, 2025
  • Result is always a Cartesian product
  • Common attribute B appears twice
  • Result will have schema \( (A, B, C) \)
  • Natural join cannot be performed unless attribute names differ
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

A natural join combines two relations based on common attributes.
Given: \( R(A, B) \) and \( S(B, C) \), the common attribute is \( B \).
During a natural join: 
- Matching tuples from both relations based on the value of common attribute \( B \) are joined.
- The result includes all attributes from both relations, but the common attribute \( B \) appears only once.
Therefore, the resulting schema will be: \( (A, B, C) \), where: - \( A \) is from relation \( R \),
- \( B \) is the common attribute, and
- \( C \) is from relation \( S \).
This confirms that option (3) is correct.
 

Was this answer helpful?
0
0