Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider the following class database schema: Students (stuNo, fName, IName, add

ID: 3596221 • Letter: C

Question

Consider the following class database schema:
Students (stuNo, fName, IName, address, DOB, sex, depNo)
Department (depNo, depName)
Instructor (instructorNo, depNo, fName, IName)
Class (classNo, className, instructorNo, depNo)
Registration (StuNo, classNo, semester)
StudyOn (stuNo, classNo, dateStudied, hoursStudied)

W E Bonus Questions (10.points): Continue to answer the following questions using the question Adatabase schema: 5.3 43 Find out how many students are taking all Dr. Lei Huang's dlasses in Fall 2017 54 44: Produce a report of the total hours studied by each students

Explanation / Answer

1. select count(s.stuNo) from Students s join Instructor  i on s.depNo=i.depNo join Class c on s.depNo=c.depNo where i.fname='Dr.Lei' and i.lname='Huang' and c.className='Fall 2017' ;

2. Select sum(hourStudied) from StudyOn group by stuNo;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote