Question: Consider the following relations defined in a university database: Student ( sid: integer, sname: string, major: string ) Course ( cid: integer, cname: string, credits:
Consider the following relations defined in a university database:
Student sid: integer, sname: string, major: string
Course cid: integer, cname: string, credits: integer, dept: string
Section secid: integer, cid: integer, semester: string, year: integer, instructor: string
Grade sid: integer, secid: string, Grade: string
Write SQL queries for the following:
Retrieve the name and transcript of each student majoring in CS Transcript includes course name, course number, credit hours, semester, year, and grade for each course completed by the student.
For each section taught by Prof. Einstein, retrieve the course number, semester, year, and number of students in the section.
Retrieve the names and major departments of all point students students who have a grade of A in all their courses
List the names of courses along with the number of students who joined the course during each semester and year.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
