Given two tables 'R' and 'S'. What will be the output of R-S?
Given two tables 'R' and 'S'. What will be the output of R-S?
Solution
✅ Correct Option: 2
R - S is the set difference operation in relational algebra. It returns the tuples that are present in R but not in S.
Option 1: this is the union, .
Option 3: this is the intersection, .
Option 4: this is . Set difference is not commutative, so .
Both tables must have the same number of attributes with matching domains (union-compatible) for the difference to be defined.
Related questions:
2025: 13 May Shift 2
2025: 30 May Shift 2
2026: 23 May Shift 2
2025: 22 May Shift 1