GATE DA 2024 · Question 26 · Database Management and Warehousing · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Consider a database that includes the following relations:
Defender(name, rating, side, goals)
Forward(name, rating, assists, goals)
Team(name, club, price)
Which ONE of the following relational algebra expressions checks that every name occurring in Team appears in either Defender or Forward, where φ denotes the empty set?
- (A) Πₙₐₘₑ(Team) ∖ (Πₙₐₘₑ(Defender) ∩ Πₙₐₘₑ(Forward)) = φ
- (B) (Πₙₐₘₑ(Defender) ∩ Πₙₐₘₑ(Forward)) ∖ Πₙₐₘₑ(Team) = φ
- (C) Πₙₐₘₑ(Team) ∖ (Πₙₐₘₑ(Defender) ∪ Πₙₐₘₑ(Forward)) = φ
- (D) (Πₙₐₘₑ(Defender) ∪ Πₙₐₘₑ(Forward)) ∖ Πₙₐₘₑ(Team) = φ
Answer
Answer (C)
Answer from the official GATE DA 2024 answer key.
The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes