All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Database Management Systems Paper 2 CS · December 2018

Consider the tables Students(Roll-No, Name) and Performance(Roll-No, Course, Marks) shown below; Students also contains the row (18CS103, Ramesh). Primary keys are underlined. Consider the query: SELECT S.Name, SUM(P.Marks) FROM Students S, Performance P WHERE S.Roll-No = P.Roll-No GROUP BY S.Name The number of rows returned is

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. 2

Explanation

Grouping is on Name, and there are only two distinct names (Ramesh for 18CS101 and 18CS103, Mukesh for 18CS102). So 2 rows.

More Database Management Systems questions