GATE CS 2023 · SQL Queries

NAT · 2 marks · Problem DBMS-SQL-0054

Consider the following table named Student in a relational database. The primary key of this table is rollNum.\[\begin{array}{|c|c|c|c|} \hline \\ rollNum&name&gender&marks \\ \hline 1&Naman&M&62\\ \hline 2&Aliya&F&70 \\ \hline 3&Aliya &F&80 \\ \hline 4&James&M&82\\ \hline 5&Swati&F&65\\ \hline \end{array}\]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

Numerical answer (NAT).

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: [2.0, 2.0].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/399260/gate-cse-2023-question-51

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com