Question
Consider two relations describing and in a sports league:
- : are team-id and team-name, respectively
- : and denote player-id, player-name and the team-id of the player, respectively
Which ONE of the following tuple relational calculus queries returns the name of the players who play for the team having as ?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2025 answer key
Solution
Bind tuple variable to players, existentially quantify in teams, and join on with .
To retrieve p.pname, tuple variable must belong to the players relation (), and there must exist a tuple that matches 's team ID () and has team name 'MI' (). Option (A) states this exact query; (B) and (D) bind to teams, while (C) omits the join condition .
Option (A)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
- Question
- 39 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.