Skip to main content
GATE CSE

SQL PYQs (GATE CSE Databases: SQL previous year questions)

The frequency analysis counts 47 GATE CSE questions on SQL between 1988–2025. 12 of them since 2016. See how it scores below, then practise Databases previous year questions.

  • 47questions in the topic analysis
  • 1988–2025years it has appeared
  • very highhistorical value tier
  • 11practice questions on SQL

About SQL

Frequency
1.00
Recurrence
1.00
Recentness
0.26
Solvability
0.77

Combined topic value score 77.9/100 — the same transparent four-part weighting used across the archive, not a hand-assigned priority. VERY HIGH

Difficulty mix
normal26
easy11
unknown10
Question type mix
MCQ26
descriptive11
NAT9
MSQ1
Other exam streams
GATE IT7
GATE DS&AI2
GATE DA1
UNKNOWN1

Practice Questions

These 11 questions are previous year questions on SQL, checked and linked to this topic.

Question 1 of 5
GATE CSE 2021DatabasesSQL2 marks

The relation scheme given below is used to store information about the employees of a company, where empId\textsf{empId} is the key and deptId\textsf{deptId} indicates the department to which the employee is assigned. Each employee is assigned to exactly one department.

emp(empId‾, name, gender, salary, deptId)\textsf{emp(}\underline{\textsf{empId}}\textsf{, name, gender, salary, deptId)}

Consider the following SQL\text{SQL} query:

  1. select deptId, count(*)
  2. from emp
  3. where gender = “female” and salary > (select avg(salary)from emp)
  4. group by deptId;

The above query gives, for each department in the company, the number of female employees whose salary is greater than the average salary of

Choose one option

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.