Create a view that will display department names and sum of all employee income by department.
Use case study databases for the following queries.
```
SQL> CREATE OR REPLACE VIEW EMPLOYEE_DEPT_SAL_VU
2 AS
3 SELECT DEPTNAME, SUM(SALARY+NVL(COMMISSION,0)) TOTALSALARY
4 FROM EMPLOYEE E, DEPT D
5 WHERE E.DEPTID = D.DEPTID
6 GROUP BY DEPTNAME;
VIEW CREATED.
SQL> SELECT * FROM EMPLOYEE_DEPT_SAL_VU;
DEPTNAME TOTALSALARY
------------ -----------
FINANCE 410000
INFOSYS 166500
MARKETING 160000
SALES 77500
```
You might also like to view...
What is a file?
What will be an ideal response?
Move all files from current directory to mydir directory
What will be an ideal response?
Given the following style,border-image: url(frame.png) 5 10 15 25 stretch;slices the border image ____.
A. 5 pixels on the left side B. 5 pixels on the top side C. 5 pixels on the bottom D. 25 pixels on the right side
Everyone has the same size reservoir of goodwill.
a. True b. False