create view v1(name,max(sal),min(sal),avg(sal)) as select d.dname,max(e.sal),min(e.sal), avg(e.sal) from emp e,dept d where e.deptno=d.deptno group by d.dname;
NOTE: we cannot do any manipulations in a complex view