Lab 12 Exercises
- Create a view to display information about employees from department 60, 80, 20. (employee name, surname, job)
- Describe the structure of the view.
- Use aliases for each column in your view (both ways)
- Retrieve data from the view (select statements)
- Use the OR REPLACE statement to update the view. (update the views)
- Create a view containing information about name, min, max, avg salary for each of the departments
- Create a view (VU60_1) where you compute the annual salary for each employee in department 60
- Insert a new employee in department 10
- Try to insert/update/remove an employee from VU60_1.
- Drop a view
-
Create a view called EMP_VU based on the employee number, employee name,
and department number from the OEHR_EMPLOYEES table (and other). Change
the heading for the employee name to EMPLOYEE_FN (family name)
and EMPLYEE_LN (last name)
- Display the content of EMP_VU
- Using your view create a query to display all employee names and department numbers