GATE CS 2023 | Question 61

Databases › SQL Queries · NAT · 2 marks · Answer: 2

  1. Question 61Databasesnat2 marks
    For the Student table (rows: 1 Naman M 62, 2 Aliya F 70, 3 Aliya F 80, 4 James M 82, 5 Swati F 65), the query SELECT * FROM Student WHERE gender='F' AND marks>65 returns __________ rows

    Answer: 2

    Solution

    Answer: 2 Female students: Aliya(70), Aliya(80), Swati(65). Of these, marks : Aliya(70) and Aliya(80). Swati(65) is not . So 2 rows.

More GATE PYQ on SQL Queries

All GATE CS Databases PYQ →

Attempt GATE CS 2023 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →