GATE CS 2015, set 1 · Question 61 · Databases · Numerical answer (NAT) · 2 marks · no negative marks

Consider the following relations:
Student
Performance
Consider the following SQL query.
SELECT S.Student_Name, sum(P.Marks) FROM Student S, Performance P WHERE S.Roll_No = P.Roll_No GROUP BY S.Student_Name
The number of rows that will be returned by the SQL query is ______.

Roll_NoStudent_Name
1Raj
2Rohit
3Raj
Roll_NoCourseMarks
1Math80
1English70
2Math75
3English80
2Physics65
3Math80
Answer

Answer 2

Answer from the official GATE CS 2015 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes