DataBase Chapter 7
DataBase Chapter 7
The eight base types are: Boolean, character, bit (removed from SQL:2003), exact numeric, approximate
numeric, datetime, interval, large object..
Common Access Privileges Able to Insert/Update/Delete such as INSERT, UPDATE, DELETE, REMOVE. Able
to do administrative actions such as CREATE USER, CREATE ROLE, ALTER, REPLICATION, DROP
USER/TABLES/SCHEMA's, kill operations, etc.
What is a materialized view and what are the advantages of a maintaining a materialized view rather
than using the view resolution process?
Describe the difference between discretionary and mandatory access control. What type of control
mechanism does SQL support?
Describe how the access control mechanisms of SQL work
Exercises
Answer the following questions using the relational schema from the Exercises at the end of Chapter 4:
7.10 Create the Hotel table using the integrity enhancement features of SQL.
7.11 Now create the Room, Booking, and Guest tables using the integrity enhancement features of SQL
with the following constraints:
Give the user Accounts SELECT access to these views. Now revoke the access from this user