ในการประกาศวิชาเอกใน DENT ฉันจำเป็นต้องเรียนคลาสใดบ้าง ไม่จำเป็นต้องใช้ตารางทั้งหมด
In order to declare a major in DENT , what classes do I need to take ?It is not neccessary to use all the tables.
 course:  course_id [ int]  name [ varchar]  department [ varchar]  number [ varchar]  credits [ varchar]  advisory_requirement [ varchar]  enforced_requirement [ varchar]  description [ varchar]  num_semesters [ int]  num_enrolled [ int]  has_discussion [ varchar]  has_lab [ varchar]  has_projects [ varchar]  has_exams [ varchar]  num_reviews [ int]  clarity_score [ int]  easiness_score [ int]  helpfulness_score [ int] 
SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%DENT%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id