GATE CSE 2025 Session 1 Q55: Minimum age of players coached by Mark
- Databases
- 2 marks
- NAT
- No negative marking
Question
Consider the following database tables of a sports league.
player(pid, pname, age) coach(cid, cname) team(tid, tname, city, cid) members(pid, tid)
An instance of the table and an SQL query are given.
| pid | pname | age |
|---|---|---|
| 1 | Jasprit | 31 |
| 2 | Atharva | 24 |
| 3 | Ishan | 26 |
| 4 | Axar | 30 |
| cid | cname |
|---|---|
| 101 | Ricky |
| 102 | Mark |
| 103 | Trevor |
| tid | tname | city | cid |
|---|---|---|---|
| 10 | MI | Mumbai | 102 |
| 20 | DC | Delhi | 101 |
| 30 | PK | Mohali | 103 |
| pid | tid |
|---|---|
| 1 | 10 |
| 2 | 30 |
| 3 | 10 |
| 4 | 20 |
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
)The value returned by the given SQL query is ______. (Answer in integer)
Try it: numerical answer: type the value
Show answer and explanation
Answer: 26 (official GATE 2025 final answer key)
Concept used: Evaluating a nested IN subquery that joins three tables, then an aggregate.
First step: Mark has cid 102, which coaches team tid 10 (MI); find the members of team 10 and their ages.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2025 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Databases PYQs
- 2026 Session 1 · Q30Which functional dependency inferences always hold
- 2026 Session 1 · Q31Dependency-preserving decompositions for 1NF, 2NF, 3NF, BCNF
- 2026 Session 1 · Q43Relational algebra equivalent of a tuple calculus join query
- 2026 Session 1 · Q65Number of superkeys with candidate keys {A,B} and {A,C}
- 2026 Session 2 · Q15Match DBMS schema levels with what they describe
- 2026 Session 2 · Q20When two transactions do not conflict on a data item