2-10.sql
上传用户:lyj12345cj
上传日期:2010-02-12
资源大小:600k
文件大小:1k
- select distinct student
- from enrolls,teachers,sections
- where exists
- (select *
- from enrolls,teachers,sections
- where teachers.teacher=sections.teacher and sections.course=enrolls.course and teachers.teachername='Dr.Lowe'
- group by student
- having count(distinct enrolls.course)=(select count(distinct enrolls.course)
- from enrolls,teachers,sections
- where teachers.teacher=sections.teacher and sections.course=enrolls.course and teachers.teachername='Dr.Lowe')
- )