高级sql_4上机答案
1.
use studentDB
update students set sex='女'
select*from students where age>(select age from students where sname='张三')
2.
use studentDB
select sname from students where sno in(select sno from scores where lno='01')
3.
use studentDB
select sname from students where sno in (select sno from scores)
4.
update students set age=age+1
where sno not in (select sno from scores)
5.
select lname from lessons where lno not in (select lno from scores)
6.
if (exists (select * from scores where score>80))
update scores set score=score+2
else
update scores set score=score+1
7.
if (not exists (select * from scores where score>60))
update scores set score=score+3
else
update scores set score=score+1
8.
if ( exists (select * from scores where score>60))
update scores set score=score+0
else
update scores set score=score+2
1.
use libraryDB
select bname from books where pubdate>(select pubdate from books where bno='001')
2.
select rname,department from readers where rno in(select rno from borrows where bno='001')
3.
select
bname from books where bno not in (select bno from borrows)
4.
select rname from readers where rno not in(select rno from borrows)
5.
- 基于PLC控制的航空电镀生产线自动输送
- 中考预测课内外文言文对比阅读2
- 2018-2023年中国商业智能(BI)产业市场
- 中国金融体制改革研究2011new
- 外窗淋水试验方案
- 精益生产(Lean Production)
- 学校安全事故处置和信息报送制度
- Chapter 5 Human Resources Management
- 【小学数学】人教版小学六年级上册数学
- 初中数学解题方法与技巧
- 山东省创伤中心建设与管理指导原则(试
- 函数与数列的极限的强化练习题答案
- 10分钟淋巴按摩消脂
- 网络应急演练预案
- 服装设计入门基础知识
- 初二数学分式计算题练习
- (人教新课标)高二数学必修5第二章 数列
- 最新自主创业项目
- 北京大学 无机化学课件 4第4章 配合物
- 贸易公司业务管理制度




