Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5 G ? ? : HW 4 . docx FDB 5 0 2 3 7 2 - 3 HW 4 Specify the following queries in
G : HWdocx FDB HW Specify the following queries in SQL on the database schema of Figure below 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 and 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 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 in all their courses f Retrieve the names and major departments of all students who do not have any grade of in any of their courses. STUDENT tableNameStudentnumber,Class,MajorSmithCSBrownCS COURSE tableCoursename,Coursenumber,Credithours,DepartmentIntro to Computer Science,CSCSData Structures,CSCSDiscrete Mathematics,MATHMATHDatabaseCSCS SECTION tableSectionidentifier,Coursenumber,Semester,Year,InstructorMATHFall,KingCSFall,AndersonCSSpring,KnuthMATHFall,ChangCSFall,AndersonCSFall,Stone GRADE REPORT tableStudentnumber,Sectionidentifier,GradeBCAABA PREREQUISITE tableCoursenumber,PrerequisitenumberCSCSCSMATHCSCS
G
:
HWdocx
FDB
HW
Specify the following queries in SQL on the database schema of Figure below
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 and
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 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 in all their courses
f Retrieve the names and major departments of all students who do not have any grade of in any of their courses.
STUDENT
tableNameStudentnumber,Class,MajorSmithCSBrownCS
COURSE
tableCoursename,Coursenumber,Credithours,DepartmentIntro to Computer Science,CSCSData Structures,CSCSDiscrete Mathematics,MATHMATHDatabaseCSCS
SECTION
tableSectionidentifier,Coursenumber,Semester,Year,InstructorMATHFall,KingCSFall,AndersonCSSpring,KnuthMATHFall,ChangCSFall,AndersonCSFall,Stone
GRADE REPORT
tableStudentnumber,Sectionidentifier,GradeBCAABA
PREREQUISITE
tableCoursenumber,PrerequisitenumberCSCSCSMATHCSCS
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started