4.Specify the following queries in SQL on the database schema of figure a.Retrieve the names of all senior students majoring in ‘CS’ (computer science). b Retrieve the names of all courses taught by Professor King in 1998 and 1999. 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 CS. A 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 a grade of A in any of their courses
4.Specify the following queries in SQL on the
a.Retrieve the names of all senior students majoring in ‘CS’ (computer science).
b Retrieve the names of all courses taught by Professor King in 1998 and 1999.
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 CS. A 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 a grade of A in any of their courses
![STUDENT Name StudentNumber Class
Major
Smith
17
1
cs
Brown
8
2
CS
CourseNumber CreditHours Department
Cs
COURSE
CourseName
Intro to Computer Science
Data Structures
Discrete Mathematics
CS1310
4
CS3320
4
CS
MATH2410
3
МАТH
Database
CS3380
3
CS
SECTION Sectionldentifier CourseNumber
Semester
Year
Instructor
85
МАТН2410
Fall
Fall
Spring
98
King
Anderson
Knuth
92
CS1310
98
99
99
102
CS3320
112
МАТН2410
Fall
Chang
Anderson
119
CS1310
Fall
99
99
135
CS3380
Fall
Stone
GRADE_REPORT StudentNumber
Sectionldentifier
Grade
17
112
B
17
119
C
8
85
A
8.
92
A
8
102
B
8
135
A
PREREQUISITE
CourseNumber PrerequisiteNumber
CS3380
CS3320
CS3380
МАТН2410
CS3320
CS1310](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb62c0899-7f09-4ef6-b058-713965942675%2F4465393c-0ac0-4d72-9aa9-974982d592d5%2Fb65jx5e_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)