Create student database and retrieve course name taught by king?
STUDENT (name, student#, class, major)
COURSE (course name, course#, credit hours, department)
SECTION (section identifier, course#, semester, year, instructor)
GRADE_REPORT (student#, section identifier, grade)
PREREQUISITE (course#, presequisite#)
Retrieve the names of all courses taught by Professor King in 1998
Query:
SELECT COURSE_NAME FROM COURSE C, SECTION S
WHERE C.COURSE# = S.COURSE#
AND INSTRUCTOR = ‘KING' AND YEAR = 1998
OR
SELECT COURSE_NAME FROM COURSE
WHERE COURSE# IN (SELECT COURSE# FROM SECTION
WHERE INSTRUCTOR = ‘KING' AND YEAR = 1998)