GATE CS 2014, set 3 · Question 31 · Databases · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
What is the optimized version of the relation algebra expression π_(A1)(π_(A2)(σ_(F1)(σ_(F2)(r)))), where A1, A2 are sets of attributes in r with A1 ⊂ A2 and F1, F2 are Boolean expressions based on the attributes in r?
- (A) π_(A1)(σ_((F1 ∧ F2))(r))
- (B) π_(A1)(σ_((F1 ∨ F2))(r))
- (C) π_(A2)(σ_((F1 ∧ F2))(r))
- (D) π_(A2)(σ_((F1 ∨ F2))(r))
Answer
Answer (A)
Answer from the official GATE CS 2014 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes