模型说明:学升:s(s#,name),选课:sc(s#,c#,cname),课程:c(c#,cname)
如:选择选修了‘程军’所教的全部课程的学生
select sname from s,sc
where s.s#=sc.s#
and c# in (select c# from c
where teacher='程军')
group by sname,s.s#
having count(*)=(select count(*) from c where teacher='程军')请问那位高手有其他方法?
如:选择选修了‘程军’所教的全部课程的学生
select sname from s,sc
where s.s#=sc.s#
and c# in (select c# from c
where teacher='程军')
group by sname,s.s#
having count(*)=(select count(*) from c where teacher='程军')请问那位高手有其他方法?
解决方案 »
- 給stringgrid的某一列重新設置參數 急
- delphi 调用dll 出错 access violation at 0x0
- 使用adoquery1连接数据表,删除记录的问题!
- [Help]使程序蹦溃的二段代码
- 关于ADOQUERY调用SQL SERVER 里的存储过程的问题....
- 我的程序有一个位置固定的自产生文件要安装程序执行就和程序复制到用户电脑固定地点如何办到
- 如何判断软盘是否处于写保护状态/
- 急聘附爱尔兰delphi软件开发工程师
- 我会写COM的程序.但我不知道其到底有什么用处和好处?
- update的用法
- 一个有关窗体释放的问题!
- 二进制的DFM文件如何用代码将其转换成纯文本文件?
where s.s#=sc.s# and sc.c#=c.c# and teacher='程军'
group by sname,s.s# hvaing count(1)=(select count(*) from c where teacher='程军')