- 8
- 0
- 约1.9千字
- 约 2页
- 2017-06-17 发布于河南
- 举报
SQL实验指导答案
/*1*/select student.sno 学号,sn 姓名,cn 课程, score 成绩
from student,sc,course
where score80 and score90 and student.sno=sc.sno and sc.cno=course.cno
/*2*/select cn 课程
from sc,course
where sc.cno=course.cno
group by course.cn
having count(*)=4
/*3*/select sn 姓名,age 年龄,dept 系别from student where ageany
(
select age
from student
where dept=信息
)
and dept信息
order by age desc
/*4*/select sno 学号, sn 姓名,dept 系别from studentn where age=any
(
select age
from student
where sn=张建国
)
and sn张建国
/*5*/select sn 姓名from student where sno=any
(
select sno
from sc
group by sno
您可能关注的文档
最近下载
- 22G610-1 建筑隔震构造详图.pdf VIP
- 煤矿职工应急救援培训内容.pdf VIP
- EASTMAN聚酯与共聚聚酯介绍.ppt VIP
- 2025重庆垫江县鹤游镇本土人才选拔1人备考题库附答案解析.docx VIP
- 编码1《生活中的编码》课件-2026-2027学年四年级上册数学北师大版.pptx VIP
- 人教版数学一年级上册《位置:左右》真题同步练习6(含答案和解析40题).docx VIP
- 2026年浙江生物安全证考试题库及答案解析.docx VIP
- 《中职语文基础知识手册》 专题七 语言表达.pptx
- LNG加气站质量管理体系文件.pdf VIP
- 大学课程《C语言程序设计》PPT教学课件:第2章 顺序结构程序设计.pptx VIP
原创力文档

文档评论(0)