top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How to create a complex view?

0 votes
110 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...