Question: Generate a single SQL query that uses SUM, JOIN, and GROUP BY functions based on the ERD FP_Program ProgramID (PK) ProgramName DepartmentID FP_Department DepartmentID (PK)

Generate a single SQL query that uses SUM, JOIN, and GROUP BY functions based on the ERD


 

erd1.png 
 

FP_Program ProgramID (PK) ProgramName DepartmentID FP_Department DepartmentID (PK) DepartmentName FP_Course Type PK Course TypeID Course TypeName FP_Instructor InstructorID (PK) FirstName LastName FP_Location LocationID (PK) Location Name FP_Course PK CourseID CourseName Course TypeID ProgramID DepartmentID FP_Catalog CatalogID (PK) Term InstructorID RoomID FP_Room RoomID (PK) RoomNumber LocationID FP_StudentRegistration StudentID (PK) FirstName CourseID LastName Address FP Enrollment EnrollmentID (PK) Grades CatalogID City State Zip UnitCost StudentID

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!