Neco 2024 Data Processing Question 26

Practice objective / multiple choice question 26 from the 2024 Neco Data Processing examination.

Neco 2024 Data Processing Objective / Multiple Choice Medium Difficulty
Question 26 NECO • 2024 • DATA_PROCESSING • objective

Consider the relational schemas Students(SID, Name, Dept), Courses(CourseCode, Dept) and Enrolments(SID, CourseCode). Using relational algebra, write an expression that returns the names of students who are enrolled in every course offered by the Computer Science department (Dept = 'CS').

Answer Options

A. \( \pi_{Name}(Students \bowtie ( \pi_{CourseCode}(Enrolments) \div \pi_{SID}(\sigma_{Dept='CS'}(Courses)) )) \)
B. \( \pi_{SID}(Students \bowtie ( \pi_{SID}(Enrolments) \div \pi_{CourseCode}(\sigma_{Dept='CS'}(Courses)) )) \)
C. \( \pi_{Name}(Students \bowtie Enrolments \bowtie \sigma_{Dept='CS'}(Courses)) \)
Correct Answer D. \( \pi_{Name}(Students \bowtie ( \pi_{SID}(Enrolments) \div \pi_{CourseCode}(\sigma_{Dept='CS'}(Courses)) )) \)
Correct Answer
D
Correct Option:
\( \pi_{Name}(Students \bowtie ( \pi_{SID}(Enrolments) \div \pi_{CourseCode}(\sigma_{Dept='CS'}(Courses)) )) \)

About This Question

This is Neco 2024 Data Processing Question 26. It is one of the objective questions from the 2024 Neco Data Processing examination.

Difficulty level: Medium .

Master the Exam!

You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.

Unlock Full Access Available for Android & Windows
Chat with Support