Question: I need the code for these sql queries please For each department that has one or more majors with a GPA under 1.0, print the

I need the code for these sql queries please

I need the code for these sql queries please For each department

For each department that has one or more majors with a GPA under 1.0, print the name of the department and the average GPA of its majors. select m.dname, avg(s.gpa) from student s join major m using(sid) join (select distinct maj.dname from major maj join student stu using(sid) where stu.gpa

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!