GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2023

GATE 2023 · CS · NAT · 2 marks · Databases › SQL

GATE 2023 Computer Science and Information Technology question: Consider the following table named Student in a relational database. The primary key of…

Consider the following table named Student in a relational database. The primary key of this table is rollNum.

Student

rollNum name gender marks
1 Naman M 62
2 Aliya F 70
3 Aliya F 80
4 James M 82
5 Swati F 65

The SQL query below is executed on this database.

SELECT *
FROM Student
WHERE gender = 'F' AND
   marks > 65;

The number of rows returned by the query is ____________.

Show answer

Official answer: 2

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion