GATE CS 2024, set 2 · Question 45 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

The relation schema, Person(pid,city), describes the city of residence for every person uniquely identified by pid. The following relational algebra operators are available: selection, projection, cross product, and rename.
To find the list of cities where at least 3 persons reside, using the above operators, the minimum number of cross product operations that must be used is

  1. (A) 1
  2. (B) 2
  3. (C) 3
  4. (D) 4
Answer

Answer (B)

Answer from the official GATE CS 2024 answer key.

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