Question: Consider the following data base schema: Student(studentID, sname, major, level, #deptid) Class(classNum, cname, Time, room, #teacherID) Enrolled(#studentID, #classNum) Teacher(teacherID, fname, #deptid) Write SQL statement for
Consider the following data base schema: Student(studentID, sname, major, level, #deptid) Class(classNum, cname, Time, room, #teacherID) Enrolled(#studentID, #classNum) Teacher(teacherID, fname, #deptid) Write SQL statement for the following query List class name and the number of students in the class. Consider the following data base schema: Student(studentID, sname, major, level, #deptid) Class(classNum, cname, Time, room, #teacherID) Enrolled(#studentID, #classNum) Teacher(teacherID, fname, #deptid) Write SQL statement for the following query List class name and the number of students in the class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
