Question: Consider the following database schema describing students enrolled in sections of classes at a university. student( sid , sname, sex, age, year, gpa) [Year is

Consider the following database schema describing students enrolled in sections of classes at a university.

student(sid, sname, sex, age, year, gpa) [Year is a number between 1 and 5].

dept(dname, numphds)

prof(pname, dname)

course(cno, cname, dname) [Course numbers are unique within departments.]

major(dname, sid)

section(dname, cno, sectno, pname) [Associates an instructor to a section.]

enroll(sid, grade, dname, cno, sectno) [Associates students to sections.]

Attributes that form part of the key are listed in bold. Grades and GPAs are numeric.

For each professor, calculate the average grade G of all students taught by that professor; for professors with a G value of at least 2.5, print the professor's name, department, total enrollment and average grade (i.e., G). Assume that the enrollment of a professor is the sum of the enrollment of all his/her sections.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!