Learning Objectives:

Your task:

  1. Using the oracle schema HR, create a view called LocalEmployees that would only present the employee data for those who work in Canada. Then, list the first name and last name of each employee working in Canada using the view LocalEmployees.
  2. Create a table called Transactions that includes the following columns (data type in the brackets): transactionID (integer), unitPrice (number), units (integer), startTime (timestamp), endTime (timestamp).
    The schema of the relation Transactions should include the following constraints:
  3. Grant select and update privilege to some of your fellow students. Ask them to test whether they can read, update, insert and delete data from your table.
  4. Revoke update privilege from these students and let them test whether they can still read and update your table.