Question: ( i ) What does integrity in the database context mean? Explain how integrity is defined and what types of integrity are part of the
i What does integrity in the database context mean? Explain how integrity is
defined and what types of integrity are part of the relational model?
ii Describe how entity integrity can be specified in SQL
iii Discuss how triggers can be used to monitor integrity. Use an SQL statement
for one of the tables in question of this paper to help illustrate your answer.
Marks
iv Suppose a university wishes to manage staff, lecturers and modules taught in
the university Suppose the university UNI is subdivided into the following
responsibilities roles: departments DEPARTMENT subject areas
SUBJECTAREAS and university staff UNIVERSITYSTAFF The university
database contains, among others, the relations: modules taught MODULE
staff STAFF and lecturer LECTURER
To improve the universitywide cooperation, departments are awarded further
rights to the UNIdatabase read insertion and modification privileges on
relations MODULE, STAFF, LECTURER
GRANT SELECT, INSERT, UPDATE ON MODULE TO DEPARTMENT WITH GRANT
OPTION
GRANT SELECT, INSERT, UPDATE ON LECTURER TO DEPARTMENT WITH GRANT
OPTION
GRANT SELECT, INSERT, UPDATE ON STAFF TO DEPARTMENT WITH GRANT
OPTION
MODULE should now be passed on to individual subject areas
SUBJECTAREAS The subject area offices should be able to create new
modules and lecturer allocations. Subject areas should get read, insertion and
modification privileges on MODULE and LECTURER. University staff
UNIVERSITYSTAFF of the subject areas should get read privileges to all three
relations, as well as modification privileges to MODULE.
a What SQL commands are needed to assign the appropriate
privileges?
b What happens, when the university decides to revoke the insertion
and modification privileges to the relations MODULE and LECTURER
from the subject areas SUBJECTAREAS Write down the
corresponding SQL commands
What are the consequences for the staff privileges?
v Assume you work as database administrator for a European company which
stores information about its customers. Does this data need to be protected?
Explain why and what you, as database administrator, must do
Marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
