...
UGC NET CS 2014 Dec – paper-3
September 19, 2024
UGC NET CS 2018-DEC Paper-2
September 19, 2024
UGC NET CS 2014 Dec – paper-3
September 19, 2024
UGC NET CS 2018-DEC Paper-2
September 19, 2024

Database-Management-System

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

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 ____?
A
2
Question 3 Explanation: 
Given query is SELECT * FROM Student WHERE gender = ‘F’ AND marks > 65;
There are a total 5 rows present in the student table.
Among 5 rows , three rows belong to gender “F” and from that three rows also, only two rows consist of marks greater than 65.So Given query returns only two rows.
Correct Answer: A
Question 3 Explanation: 
Given query is SELECT * FROM Student WHERE gender = ‘F’ AND marks > 65;
There are a total 5 rows present in the student table.
Among 5 rows , three rows belong to gender “F” and from that three rows also, only two rows consist of marks greater than 65.So Given query returns only two rows.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!