摘要:
求出谁的工资比 scott 工资高 1.先求出scott工资 select sal from emp where ename = 'SCOTT'; 2.查询谁的工资比scott高 select * from emp where sal > (select sal from emp where ena 阅读全文
posted @ 2020-07-04 15:14
王清河
阅读(245)
评论(0)
推荐(0)
摘要:
按部门统计员工人数:部门号,部门名称,各部门人数 select d.deptno, d.dname, count(e.empno) from dept d, emp e where d.deptno = e.deptno group by d.deptno, d.dname 上诉结果没有出现40号部 阅读全文
posted @ 2020-07-04 15:09
王清河
阅读(185)
评论(0)
推荐(0)

浙公网安备 33010602011771号