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)
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;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.