expand icon
book Database Systems 6th Edition by Ramez Elmasri, Shamkant B. Navathe cover

Database Systems 6th Edition by Ramez Elmasri, Shamkant B. Navathe

Edition 6ISBN: 0136086209
book Database Systems 6th Edition by Ramez Elmasri, Shamkant B. Navathe cover

Database Systems 6th Edition by Ramez Elmasri, Shamkant B. Navathe

Edition 6ISBN: 0136086209
Exercise 7
  -Specify the following queries in SQL on the database schema of Figure 1.2.  (a) Retrieve the names of all senior students majoring in 'COSC' (computer science).  (b) Retrieve the names of all courses taught by professor King in 85 and 86.  (c) For each section taught by professor King, retrieve the course number, semester, year, and number of students who took the section.  (d) Retrieve the name and transcript of each senior student (Class=5) majoring in COSC. Transcript includes course name, course number, credit hours, semester, year, and grade for each course completed by the student.  (e) Retrieve the names and major departments of all straight A students (students who have a grade of A in all their courses).  (f) Retrieve the names and major departments of all students who do not have any grade of A in any of their courses.
-Specify the following queries in SQL on the database schema of Figure 1.2.
(a) Retrieve the names of all senior students majoring in 'COSC' (computer science).
(b) Retrieve the names of all courses taught by professor King in 85 and 86.
(c) For each section taught by professor King, retrieve the course number, semester, year, and number of students who took the section.
(d) Retrieve the name and transcript of each senior student (Class=5) majoring in COSC. Transcript includes course name, course number, credit hours, semester, year, and grade for each course completed by the student.
(e) Retrieve the names and major departments of all straight A students (students who have a grade of A in all their courses).
(f) Retrieve the names and major departments of all students who do not have any grade of A in any of their courses.
Explanation
Verified
like image
like image

(a) SELECT Name
FROM STUDENT
WHERE Major...

close menu
Database Systems 6th Edition by Ramez Elmasri, Shamkant B. Navathe
cross icon