GATE CS 2018 · Question 51 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider the relations r(A, B) and s(B, C), where s.B is a primary key and r.B is a foreign key referencing s.B. Consider the query
Q: r (σ_(B<5)(s))
Let LOJ denote the natural left outer-join operation. Assume that r and s contain no null values.
Which one of the following queries is NOT equivalent to Q?

  1. (A) σ_(B<5)(r s)
  2. (B) σ_(B<5)(r LOJ s)
  3. (C) r LOJ (σ_(B<5)(s))
  4. (D) σ_(B<5)(r) LOJ s
Answer

Answer (C)

Answer from the official GATE CS 2018 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes