Skip to main content
GATE CSE

Databases PYQs (GATE CSE Databases previous year questions)

Practise real GATE CSE Databases previous year questions from 1990–2026. Attempt questions, check your answers and learn with the stored explanations.

  • 193GATE CSE PYQs in archive
  • 1990–202631 exam years
  • 5 chapters27 analysed topics
  • Allhave a verified solution

Practice Questions

Question 1 of 5
GATE CSE 2025DatabasesSQL2 marks

Consider the following database tables of a sports league.

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

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

playerpidpnameage1Jasprit312Atharva243Ishan264Axar30coachcidcname101Ricky102Mark103Trevorteamtidtnamecitycid10MIMumbai10220DCDelhi10130PKMohali103memberspidtid110230310420\begin{array}{} \textbf{player} \\ \begin{array}{|c|c|} \hline \textbf{pid} & \textbf{pname} & \textbf{age} \\ \hline \text{1} & \text{Jasprit} & \text{31} \\ \hline \text{2} & \text{Atharva} & \text{24} \\ \hline \text{3} & \text{Ishan} & \text{26} \\ \hline \text{4} & \text{Axar} & \text{30} \\ \hline \end{array} \\ \end{array} \quad \begin{array}{} \textbf{coach} \\ \begin{array}{|c|c|} \hline \textbf{cid} & \textbf{cname} \\ \hline \text{101} & \text{Ricky} \\ \hline \text{102} & \text{Mark} \\ \hline \text{103} & \text{Trevor} \\ \hline \end{array} \\ \end{array} \quad \begin{array}{} \textbf{team} \\ \begin{array}{|c|c|c|} \hline \textbf{tid} & \textbf{tname} & \textbf{city} & \textbf{cid} \\ \hline \text{10} & \text{MI} & \text{Mumbai} & \text{102} \\ \hline \text{20} & \text{DC} & \text{Delhi} & \text{101} \\ \hline \text{30} & \text{PK} & \text{Mohali} & \text{103} \\ \hline \end{array} \\ \end{array} \quad \begin{array}{} \textbf{members} \\ \begin{array}{|c|c|} \hline \textbf{pid} & \textbf{tid} \\ \hline \text{1} & \text{10} \\ \hline \text{2} & \text{30} \\ \hline \text{3} & \text{10} \\ \hline \text{4} & \text{20} \\ \hline \end{array} \\ \end{array}

  1. SELECT MIN (P.age)
  2. FROM player P
  3. WHERE P.pid IN (
  4. SELECT M.pid
  5. FROM team T, coach C, members M
  6. WHERE C.cname = 'Mark'
  7. AND T.cid = C.cid
  8. AND M.tid = T.tid
  9. )

The value returned by the given SQL query is _________. (Answer in integer)

Answer at least one question to submit.

Help us improve: tell us what to fix or add

Sign in to send feedback (it takes under a minute), or create a free account.

About Databases

Databases has 11 analysed topics in the GateIQ archive. The ones that have appeared most often in GATE CSE are Database Normalization, SQL, Transaction and Concurrency.

10 of them are rated high or very high value by the same transparent frequency, recurrence, recentness and solvability weighting used across the archive.

The practice set draws on 193 GATE CSE questions from 31 papers between 1990–2026. 193 of them carry a verified worked solution, shown after you submit.

Topics (27)

Year-wise PYQs

Number of GATE CSE Databases questions in each paper.

  • 20264
  • 20258
  • 202412
  • 20232
  • 20225
  • 202110
  • 20205
  • 20195
  • 20184
  • 201710
  • 20168
  • 201512
  • 201415
  • 20134
  • 20127
  • 20114
  • 20105
  • 20095
  • 20088
  • 20076
  • 20065
  • 20057
  • 20046
  • 20036
  • 20025
  • 20015
  • 20005
  • 19997
  • 19985
  • 19972
  • 19901