วิชาใดบ้างที่เปิดเป็น PreMajor ภาคเรียนถัดไป ?ไม่จำเป็นต้องใช้ทุกตาราง
Which classes are available as PreMajor next semester ?It is not neccessary to use all the tables.
 gsi:  course_offering_id [ int]  student_id [ int] 
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 GROUP BY course.department, course.number