GATEverse
← GATE IT 2008

Q74

MCQ2 marks, −0.5

Consider the following relational schema: Student(school-id,sch-roll-no‾,sname,saddress)\text{Student} (\underline{\text{school-id}, \text{sch-roll-no}}, \text{sname}, \text{saddress}) School(school-id‾,sch-name,sch-address,sch-phone)\text{School} (\underline{\text{school-id}}, \text{sch-name}, \text{sch-address}, \text{sch-phone}) Enrolment(school-id,sch-roll-no‾,erollno,examname)\text{Enrolment}(\underline{\text{school-id}, \text{sch-roll-no}}, \text{erollno}, \text{examname}) ExamResult(erollno,examname‾,marks)\text{ExamResult}(\underline{\text{erollno}, \text{examname}}, \text{marks}) What does the following SQL query output? SELECT sch-name, COUNT (*) FROM School C, Enrolment E, ExamResult R WHERE E.school-id = C.school-id AND E.examname = R.examname AND E.erollno = R.erollno AND R.marks = 100 AND E.school-id IN (SELECT school-id FROM student GROUP BY school-id HAVING COUNT (*) > 200) GROUP By school-id

Sign in to save attempts.

Loading…