top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to create a complex view?

0 votes
454 views
How to create a complex view?
posted Sep 23, 2014 by Archana

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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

answer Sep 24, 2014 by Arun Gowda
...