Question-43

DBMS

Consider the following relational schema:

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