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
```
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
____ are set automatically when you install new software.
A. System Recovery Drive B. Malware C. System images D. Restore points
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)
What's the fastest way to make a semi-circular selection?
What will be an ideal response?