Gce Model Questions Vol1 2021 Computer Studies Question 7

Practice objective / multiple choice question 7 from the 2021 Gce Model Questions Vol1 Computer Studies examination.

Gce Model Questions Vol1 2021 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 7 GCE_MODEL_QUESTIONS_VOL1 • 2021 • COMPUTER_STUDIES • objective

Given the following tables: Students( StudentID, Name, DeptID ) \begin{array}{c|c|c} \text{StudentID} & \text{Name} & \text{DeptID}\\\hline 1 & Alice & D01\\ 2 & Bob & D02\\ 3 & Carol & D01\\ 4 & Dave & D03\\ 5 & Eve & D02\\ \end{array} Enrolments( StudentID, CourseCode, Grade ) \begin{array}{c|c|c} \text{StudentID} & \text{CourseCode} & \text{Grade}\\\hline 1 & CS101 & 78\\ 1 & MA101 & 85\\ 2 & CS101 & 92\\ 2 & PH101 & 88\\ 3 & MA101 & 73\\ 3 & CS101 & 67\\ 4 & PH101 & 90\\ 5 & CS101 & 55\\ \end{array} Dept( DeptID, DeptName, Budget ) \begin{array}{c|c|c} \text{DeptID} & \text{DeptName} & \text{Budget}\\\hline D01 & Engineering & 500000\\ D02 & Science & 300000\\ D03 & Arts & 200000\\ \end{array} Consider the SQL query: SELECT d.DeptName, AVG(e.Grade) AS AvgGrade FROM Dept d JOIN Students s ON d.DeptID = s.DeptID JOIN Enrolments e ON s.StudentID = e.StudentID WHERE e.Grade >= (SELECT AVG(Grade) FROM Enrolments) GROUP BY d.DeptName HAVING COUNT(DISTINCT s.StudentID) >= 2; What result set does this query return?

Answer Options

A. Science, 84.0
B. Engineering, 81.5
C. Arts, 90.0
Correct Answer D. No rows (empty result set)
Correct Answer
D
Correct Option:
No rows (empty result set)

About This Question

This is Gce Model Questions Vol1 2021 Computer Studies Question 7. It is one of the objective questions from the 2021 Gce Model Questions Vol1 Computer Studies examination.

Difficulty level: Hard .

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