Borana University
Borana University
2. Suppose that the database administrator(DBA) creates four users: user1, user2, user3
anduser4. DBA issue the following GRANT command in SQL
And suppose that user2 creates the three base tables department, student and course.
a) Write SQL command, if user2 wants to grant user3 the privilege to enter and read rows
instudentrelation, and also user2 wants user3 to be able to propagate these privileges to other
user.
b) Write SQL command, based on question number A, if user3 wants to grant user1 the
privilegetoinsert data in the student relation, but user3 does not want user1 to be able to
propagatetheseprivileges to other user.
c) Write SQL command, if user2 wants to grant all users the privilege to insert, delete,
updateanddelete rows in the three relations, but each user does not want to be able to propagate
theseprivileges to other user.
d) Write SQL command, Based on question number C if user2 decides to revoke the insert
anddeleteprivilege on the all relations from user1 and user4.
NOTE
∙ The answer should be clear, precise and to the point as per the question context. ∙ Please
don’t share your assignment with other group if you so do, your assignment
willbeinvalid.
∙ Assignment should be submit by a softcopy