Question: 8. Assume that small sections have less than 30 students, medium sections have at least 30 students but less than 80, and large sections have

 8. Assume that small sections have less than 30 students, medium

8. Assume that small sections have less than 30 students, medium sections have at least 30 students but less than 80, and large sections have at least 80 students. Your result table should have the following rows and columns: Each table entry must have the number of sections of a given size offered by each department.

sections have at least 30 students but less than 80, and large

9. List of professors that work for departments with more than 20 faculty members and that offer more large sections than small and medium sections combined.

10. Assume grades are A, B, C, D, F where D and F are failing grades. For each course (section) find the percentage of students that failed the course.

11. Find the name of the professor with the maximum percentage of students that failed his course.

12. On average what percentage of students fail a course? (total number of students that failed a course / total number of enrolled students).

13. Find a list of courses (sections) where the percentage of students with D or F is greater than average.

In the case it's too many questions, I think I can figure out to do the rest if I know how to do the first three and the last one.

Given the following tables: students(sid name,age,gpa) courses(cid,deptid, name) . professors(ssn,name,address,phone,deptid) * enrollment(sid cid section,grade, foreign key (sid) references students, foreign key (cid) references courses foreign key (cid,section) references teaches) . teaches(cid section,ssn, foreign key (cid) references courses, foreign key (ssn) references professors) Domain cid is in f'198:11', 640:151','198:112'...^ o deptid is in {'cs', 'math','music',...) grade is in ['A''B', C. *section, age, ssn are an integers address, phone, name are strings . gpa is float Provide SQL instructions for each of the following questions Given the following tables: students(sid name,age,gpa) courses(cid,deptid, name) . professors(ssn,name,address,phone,deptid) * enrollment(sid cid section,grade, foreign key (sid) references students, foreign key (cid) references courses foreign key (cid,section) references teaches) . teaches(cid section,ssn, foreign key (cid) references courses, foreign key (ssn) references professors) Domain cid is in f'198:11', 640:151','198:112'...^ o deptid is in {'cs', 'math','music',...) grade is in ['A''B', C. *section, age, ssn are an integers address, phone, name are strings . gpa is float Provide SQL instructions for each of the following questions

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!