摘要:
1、列出在部门'SALES'(销售部)工作的员工的所有信息,和相关的部门信息,使用左连接的方式连表。select * from emp e left outer join dept t on( e.deptno=t.deptno) where e.deptno in(select deptno from dept d where dname='SALES');2、列出薪金高于公司平均薪金的所有员工。SQL> select empno,ename,sal,avg(sal) avgsal from emp where sal>(select avg(sa 阅读全文
posted @ 2013-03-28 21:20
锋叔子
阅读(304)
评论(0)
推荐(0)

浙公网安备 33010602011771号