Question: b - Specify the following queries in SQL on the database schema of Figure 1 . 4 Marks ) Retrieve the names of all senior

b- Specify the following queries in SQL on the database schema of Figure 1.4 Marks)
Retrieve the names of all senior students majoring in 'COSC' (computer science).
Retrieve the names of all courses taught by professor King in 85 and 86.
For each section taught by professor King, retrieve the course number, semester, year, and number of students who took the section.
STUDENT
\table[[Name,Student_number,Class,Major],[Smith,17,1,CS],[Brown,8,2,CS]]
COURSE
\table[[Course_name,Course_number,Credi__hours,Dopartment],[Intro to Computer Science,CS1310,4,CS],[Data Structures,CS3320,4,CS],[Discrete Mathomatics,MATH2410,3,MATH],[Database,CS3380,3,CS]]
SECTION
\table[[Soction_idontifier,Course_number,Semester,Year,Instructor],[85,MATH2410,Fall,07,King],[92,CS1310,Fall,07,Anderson],[102,CS3320,Spring,08,Knuth],[112,MATH2410,Fall,08,Chang],[119,CS1310,Fall,08,Andorson],[135,CS3380,Fall,08,Stone]]
GRADE REPORT
\table[[Studont number,Section_identrior,Grade],[17,112,B],[17,110,C],[8,85,A],[8,92,A],[8,102,B],[8,135,A]]
PREREQUISITE
\table[[Course_number,Prerequisite number],[CS3380,CS3320],[CS3380,MATH2410],[CS3320,CS1310]]
Figure 1.
b - Specify the following queries in SQL on the

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 Programming Questions!