Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2015 Set 1
Questions

Q27

NAT2 marksDatabasesMedium

Consider the following relation:

Roll_No‾Student_Name1Raj2Rohit3RajStudentRoll_No‾Course‾Marks1Math801English702Math753English802Physics653Math80Performance\overset{\text{Student}}{\begin{array}{|c|c|}\hline\\ \underline{\textbf{Roll\_No}}& \textbf{Student\_Name}\\\hline 1& \text{Raj} \\ \hline 2& \text{Rohit}\\ \hline 3& \text{Raj} \\\hline \end{array}} \qquad\overset{\text{Performance}}{\begin{array}{|c|l|r|c|}\hline\\ \underline{\textbf{Roll\_No}}& \underline{\textbf{Course}}& \textbf{Marks} \\\hline 1& \text{Math}& 80 \\ \hline 1& \text{English}& 70 \\ \hline 2& \text{Math}& 75 \\\hline 3& \text{English}& 80 \\\hline 2& \text{Physics}& 65 \\\hline 3& \text{Math}& 80 \\\hline \end{array}}

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 numbers of rows that will be returned by the SQL query is_________________.

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.