Computer Science And Engineering

Computer Science And EngineeringDatabase Management System (DBMS)Multiple Choice (MCQ)2 Marks
Q1.

Consider two relations describing teamsteams and playersplayers in a sports league:

  • teams(tid,tname)teams(tid, tname): tid,tnametid, tname are team-id and team-name, respectively
  • players(pid,pname,tid)players(pid, pname, tid): pid,pnamepid, pname, and tidtid 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 tnametname as MI'MI'?

A
{p.pnamepplayerst(tteamsp.tid=t.tidt.tname=MI)}\{ p.pname \mid p \in players \wedge \exists t (t \in teams \wedge p.tid = t.tid \wedge t.tname = 'MI') \}
B
{p.pnamepteamst(tplayersp.tid=t.tidt.tname=MI)}\{ p.pname \mid p \in teams \wedge \exists t (t \in players \wedge p.tid = t.tid \wedge t.tname = 'MI') \}
C
{p.pnamepplayerst(tteamst.tname=MI)}\{ p.pname \mid p \in players \wedge \exists t (t \in teams \wedge t.tname = 'MI') \}
D
{p.pnamepteamst(tplayerst.tname=MI)}\{ p.pname \mid p \in teams \wedge \exists t (t \in players \wedge t.tname = 'MI') \}
NEXT NODE