select student_ID, name,
(select class_name from classes
where class_ID = students.class_ID) as "班級", sex
from students
where student_ID in (select student_ID
from select_course
where open_course_ID = (select open_course_ID
from open_course
where teacher_ID =
(select teacher_ID from teachers where name = '粘添壽')
and course_ID = (select
course_ID
from all_course
where course_name = '資料庫管理系統')));
|