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 (sec_id: integer, cid: integer, semester: string, year: integer, instructor: string)
Grade (sid: integer, sec_id: string, Grade: string)
Write SQL queries for the following:
1.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.
2.For each section taught by Prof. Einstein, retrieve the course number, semester, year, and number of students in the section.
3.Retrieve the names and major departments of all 10-point students (students who have a grade of A in all their courses).
4.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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!