专升本数据库概论及实例试题
发布网友
发布时间:2022-05-17 09:47
我来回答
共1个回答
热心网友
时间:2023-10-18 04:54
1.select dno,avg(salry) from tmp where salry>=800 group by dno;
2.select A.dname from (select d.dname from tmp t ,dtpt d where t.dno=d.dno) A where a.tno='001';
3.update tmp set salry =salry*1.1 where salry in (select a.salry from (select * from tmp t,dtpt d where t.dno=d.dno) a where a.dname='计算机学院' and a.salry<1000);