Computer Science And Engineering

Computer Science And EngineeringDatabase Management System (DBMS)Numerical Answer (NAT)2 Marks
Q4.

Consider the following database tables of a sports league.

player(pid, pname, age) team(tid, tname, city, cid) coach(cid, cname) members(pid, tid)

An instance of the table and an SQL query are given.

image

SELECT MIN(P.age)
FROM player P
WHERE P.pid IN (
    SELECT M.pid
    FROM team T, coach C, members M
    WHERE C.cname = 'Mark'
        AND T.cid = C.cid
        AND M.tid = T.tid
)