Gate2019 cs Q61

0. A relational database contains two tables Student and Performance as shown below:

The primary key of the Student table is Roll_no. For the Performance table, the columns Roll_no. and Subject_code together form the primary key. Consider the SQL query given below:
 SELECT S.Student_name, sum(P.Marks)
 FROM Student S, Performance P
 WHERE P.Marks > 84
 GROUP BY S.Student_name;
 The number of rows returned by the above SQL query is ________.

Note – Numerical Type question

  • Option : B
  • Explanation :
    Gate2019 cs
    Total 5 different student names all 5 group records in result. (In where condition no condition over Roll_no so query produces all groups.)
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *