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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started