Do the following exercises on the HR database (see HR and OE Schemas):
Create a view of all employees and their department; include the employee ID, name, email, hire date and department name. Then write SQL commands to do the following:
If any of these view-based queries won’t work, show the query and explain why it generates an error.
Redo the previous exercise with a materialized view.
Write the following queries as specified:
You may hand write this and turn in an image of your solution, or turn it in in ASCII format, e.g.:
PI_firstName,lastName(SIGMA_gender=f(Student))
for the algebra{s1 | Student(s) ^ s.gender='female'}
for the calculus.Complete the programming elements for the lab exercises.
We will grade your work according to the following criteria: