比普通员工的最高薪水值还高的部门经理人名称
select ename from emp
where empno in 
(select distinct mgr from emp where mgr is not null)
and sal > ( select max(sal) from emp where empno not in
                (select distinct mgr from emp where mgr is not null) );
因为 (select distinct mgr from emp where mgr is not null) 重复了,所以我建立一个视图
create view v$mgr_info as select distinct mgr from emp where mgr is not null;我要如何写才能用这个视图来替代重复的地方呢?还有用视图时应该注意的东西?