Create a view to include department name and average salary by department.

Use case study databases for the following queries.


```
SQL> CREATE OR REPLACE VIEW DEPT_SAL_VU
2 AS
3 SELECT DEPTID, AVG(SALARY) AVGSALARY
4 FROM EMPLOYEE
5 GROUP BY DEPTID;

VIEW CREATED.

SQL> SELECT * FROM DEPT_SAL_VU;

DEPTID AVGSALARY
---------- ----------
10 125000
20 73250
30 34750
40 150000
```

Computer Science & Information Technology

You might also like to view...

Which of the following may require the database engine to perform a full scan on every record of the database?

A. invalid constraints B. too many triggers C. no index is defined D. no secondary key

Computer Science & Information Technology

____ are set automatically when you install new software.

A. System Recovery Drive B. Malware C. System images D. Restore points

Computer Science & Information Technology

MySQL is licensed under the ____.

A. Berkeley Software Distribution (BSD) license B. Limited License (LL) C. General Public License (GPL) D. Unlimited Site License (USL)

Computer Science & Information Technology

What's the fastest way to make a semi-circular selection?

What will be an ideal response?

Computer Science & Information Technology