Question: Translate the following from english to SQL (Using mysql) 1. What are the names and total number of sections each instructor has taught? (show 0
Translate the following from english to SQL (Using mysql)
1. What are the names and total number of sections each instructor has taught? (show 0 for instructors who have not taught any sections)
2. What are the names of all students that have passed (a C or better) the course Intro to Computer Science?
UNIVERSITY schema:
Classroom(Building, Room_Number, Capacity); Department(Dept_Name, Building, Budget); Course(Course_Id, Title, Dept_Name, Credits); Instructor(Id, Name, Dept_Name, Salary); Section(Course_Id, Sec_Id, Semester, Year, Building, Room_Number, Time_Slot_Id); Teaches(Id, Course_Id, Sec_Id, Semester, Year); Student(Id, Name, Dept_Name, Tot_Cred); Takes(Id, Course_Id, Sec_Id, Semester, Year, Grade); Advisor(S_Id, I_Id); Time_Slot(Time_Slot_Id, Day, Start_Time, End_Time); Prereq(Course_Id, Prereq_Id);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
