The GATE Grind

GATE Database Management and Warehousing: Relational algebra, tuple calculus and SQL – Previous Year Questions

9 GATE previous year questions on Relational algebra, tuple calculus and SQL (Database Management and Warehousing, Data Science and Artificial Intelligence) with answers and explanations, from every paper.

  1. GATE 2024 DA Q26 (1 mark, Multiple choice) – Consider a database that includes the following relations: Defender(name, rating, side, goals) Forward(name, rating, assists, goals) Team(name, club,…
  2. GATE 2024 DA Q31 (1 mark, Numerical answer) – Consider the following two tables named Raider and Team in a relational database maintained by a Kabaddi league. The attribute ID in table Team…
  3. GATE 2025 DA Q17 (1 mark, Multiple choice) – Consider the following three relations: Car (model, year, serial, color) Make (maker, model) Own (owner, serial) A tuple in Car represents a specific…
  4. GATE 2025 DA Q33 (1 mark, Numerical answer) – On a relation named Loan of a bank: loan number branch name amount --- --- --- L11 Banjara Hills 90000 L14 Kondapur 50000 L15 SR Nagar 40000 L22 SR…
  5. GATE 2025 DA Q62 (2 marks, Numerical answer) – Consider the following tables, Loan and Borrower, of a bank. Loan: loan num branch name amount --- --- --- L11 Banjara Hills 90000 L14 Kondapur 50000…
  6. GATE 2026 DA Q42 (2 marks, Multiple choice) – Consider the given relations X, Y and Z. The relation X has three columns P, Q and R. The relation Y has three columns P, Q and S. The relation Z has…
  7. GATE 2026 DA Q51 (2 marks, Multiple select) – Consider a table Employee(EmpID, TeamID), where the column EmpID (ID of an employee) is the primary key. The column TeamID denotes the team ID of the…
  8. GATE 2026 DA Q59 (2 marks, Numerical answer) – Let there be two relations X and Y as shown. X has three columns P, Q and R. Y has two columns P and S. X: P Q R --- --- --- P1 Q1 R1 P2 Q2 R2 P3 Q3…
  9. GATE 2026 DA Q60 (2 marks, Numerical answer) – Let Account be a relation as shown. AccNo Balance --- --- A1 5000 A2 5000 A3 10000 A4 15000 A5 18000 Consider the given SQL query. The number of rows…