GATE IT 2008 · ER-Model

MCQ · 2 marks · Problem DBMS-RELM-0083

Consider the following relational schema:Student(school-id,sch-roll-no,sname,saddress) School(school-id,sch-name,sch-address,sch-phone) Enrolment(school-id,sch-roll-no,erollno,examname) ExamResult(erollno,examname,marks) Consider the following tuple relational calculus query.\[\begin{array}{l} \{t \mid \exists E \in \text { Enrolment } t=E \text { .school-id } \\ \wedge \mid\{x \mid x \in \text { Enrolment } \wedge x . \text { school-id }=t \wedge(\exists B \in \text { ExamResult } B . \text { erollno }=x . \text { erollno } \wedge B \\ \text { examname }=x . \text { examname } \wedge B . \text { marks }>35)\}|\div|\{x \mid x \in \text { Enrolment } \wedge x . \text { school-id }=t\} \mid \\ * 100>35\} \end{array}\]If a student needs to score more than 35 marks to pass an exam, what does the query return?
  1. A
    The empty set
  2. B
    schools with more than 35% of its students enrolled in some exam or the other
  3. C
    schools with a pass percentage above 35% over all exams taken together
  4. D
    schools with a pass percentage above 35% over each exam

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3389/gate2008-it-75

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com