ฉันสามารถเรียนคลาส 400 ระดับในช่วงฤดูใบไม้ร่วงหรือฤดูหนาวได้หรือไม่ ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Am I able to take 400 -level classes in Fall or Winter term ?It is not neccessary to use all the tables.
 instructor:  instructor_id [ int]  name [ varchar]  uniqname [ varchar] 
SELECT DISTINCT COURSEalias0.department, COURSEalias0.name, COURSEalias0.number, SEMESTERalias0.semester FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE ((SEMESTERalias0.semester = 'FA' AND SEMESTERalias0.year = 2016) OR (SEMESTERalias0.semester = 'WN' AND SEMESTERalias0.year = 2017)) AND COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND NOT COURSEalias0.course_id IN (DERIVED_TABLEalias0.course_id) AND NOT COURSEalias0.course_id IN (SELECT DISTINCT COURSE_PREREQUISITEalias0.course_id FROM course_prerequisite AS COURSE_PREREQUISITEalias0 WHERE NOT COURSE_PREREQUISITEalias0.pre_course_id IN (DERIVED_TABLEalias0.course_id)) AND COURSEalias0.department = 'EECS' AND COURSEalias0.number BETWEEN 400 AND 400 + 100 AND SEMESTERalias0.semester_id = COURSE_OFFERINGalias0.semester