Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What would be an SQL query that uses Sum, join, and group by? FP_CourseTyp Course TypeID(FK) AUTOINT(11) Course TypeName varchar(50) FP_Program ProgramID(PK) AUTOINT(11) ProgramName varchar(50)

What would be an SQL query that uses Sum, join, and group by?
erd.png



 

 

FP_CourseTyp Course TypeID(FK) AUTOINT(11) Course TypeName varchar(50) FP_Program ProgramID(PK) AUTOINT(11) ProgramName varchar(50) DepartmentID(FK) INT(11) FP_Instructor InstructorID(PK) FirstName AUTOINT(11) varchar(50) FP Course LastName varchar(50) CourseID(PK AUTOINT(11) DepartmentID(FK) INT(11) CourseName varchar(50) Course TypeID(FK) INT(11) ProgramID(FK) INT(11) FP_Department DepartmentID(PK) AUTOINT(11) DepartmentName varchar(50) FP_Location LocationID(PK) AUTOINT(11) LocationName varchar(50 FP Room FP_Catalog CatalogID(PK) Term AUTOINT(11) varchar(50) RoomID(PK) RoomNumber LocationID(FK AUTOINT(11) int(11) int(11 CourseID(FK) INT(11) InstructorID(FK) INT(11) RoomID INT(11) AUTOINT(11) FP_Enrollment EnrollmentID Grades INT(11 CourseID(FK INT(11) StudentID(FK) INT(11) FP_StudentRegistration + StudentID(PK) FirstName LastName Address AUTOINT(11 varchar(50) varchar(50) varchar(50) varchar(50) varchar(50) Zip int(11) UnitCost int(11) City State

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

In a system with light damping (c Answered: 1 week ago

Answered: 1 week ago

Question

What is the purpose of clustering of data in a file?

Answered: 1 week ago