______ operation is used to get the common tuples from two relations.
______ operation is used to get the common tuples from two relations.
Solution
The Intersect operation () returns only the tuples that appear in both relations. The two relations must be union-compatible, meaning they have the same number of attributes with matching domains.
Union: returns tuples present in either relation (all tuples combined, duplicates removed), not just the common ones.
Set Difference: returns tuples present in the first relation but not in the second.
Cartesian product: pairs every tuple of one relation with every tuple of the other, so it does not look for common tuples at all.
Intersection can be written using set difference: .
Related questions:
2025: 3 June Shift 2
2025: 20 May Shift 1
2025: 13 May Shift 2
2026: 26 May Shift 1
2026: 21 May Shift 1