select sid,sname
from Student st
where (
    select count(*)
    from SC sc
    Where st.sid=sc.sid
    ) < (Select Count(*) From Course);

Student表:
Student
SC表:
SC
Teacher表:
Teacher
Course表:
Course

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐