Common Data for Questions 74 and 75: Consider the following relational schema.…

GATE · 2008 · IT

Common Data for Questions 74 and 75: Consider the following relational schema.

Consider The Following Relational Scheme

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

{ t | ∃E ∈ Enrolment: t = E.school-id ∧ ( |{ x | x ∈ Enrolment ∧ x.school-id = t ∧ (∃B ∈ ExamResult: B.erollno = x.erollno ∧ B.examname = x.examname ∧ B.marks > 35) }| / |{ x | x ∈ Enrolment ∧ x.school-id = t }| ) × 100 > 35 }

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 it's student 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.

Attempted by 50 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…