GATE CS 2025 · Set 1 · SQL Queries

MCQ · 1 mark · Problem DBMS-SQL-0029

Consider two relations describing teams and players in a sports league:\(teams(tid, tname):tid, tname\) are team-id and team-name, respectively\(players(pid, pname, tid):pid,pname,tid\) denote player-id, player-name and the team-id of the player, respectivelyWhich ONE of the following tuple relational calculus queries returns the name of the players who play for the team having name as 'MI'?
  1. A
    \(\{ p.pname \mid p \in players \wedge \exists t ( t \in teams \wedge p.tid = t.tid \wedge t.tname = 'MI' ) \}\)
  2. B
    \(\{ p.pname \mid p \in teams \wedge \exists t ( t \in players \wedge p.tid = t.tid \wedge t.tname = 'MI' ) \}\)
  3. C
    \(\{ p.pname \mid p \in players \wedge \exists t ( t \in teams \wedge t.tname = 'MI' ) \}\)
  4. D
    \(\{ p.pname \mid p \in teams \wedge \exists t ( t \in players \wedge t.tname = 'MI' ) \}\)

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/460051/gate-cse-2025-set-1-question-29

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com