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_No | Student_Name |
|---|---|
| 1 | Raj |
| 2 | Rohit |
| 3 | Raj |
| Roll_No | Course | Marks |
|---|---|---|
| 1 | Math | 80 |
| 1 | English | 70 |
| 2 | Math | 75 |
| 3 | English | 80 |
| 2 | Physics | 65 |
| 3 | Math | 80 |
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