Question: SQL This database has 3 tables Student(StudentID, Name, BirthDate, Address, GPA) Course(CourseID, Name, StartDate, EndDate, Credit, Instructor) Registration(StudentID, CourseID, LetterGrade) Write SQL queries for following
SQL
This database has 3 tables Student(StudentID, Name, BirthDate, Address, GPA) Course(CourseID, Name, StartDate, EndDate, Credit, Instructor) Registration(StudentID, CourseID, LetterGrade)
Write SQL queries for following tasks:
- List all students received grade `A` in that course - List each grade and the number of students receiving that grade in that course (i.e. how many students get an `A`, how many students get a `B`...) - List each course and its number of registered students sorted descendingly - List each instructor with the number of courses he/she has taught and their total credits - List all instructors who teaches large classes (i.e. at least a course with at least 50 students) - List each student with the number of courses he/she has registered and their total credits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
