0% found this document useful (0 votes)
99 views2 pages

Borana University

This document provides instructions for a database mini-project involving SQL commands. Students are asked to: 1. Write SQL commands to create a bank database with tables and records, and assign various permission levels to users matching bank roles. 2. Write SQL GRANT commands where a DBA assigns privileges to users who then assign privileges to other users, and revoke privileges from some users. Students are advised to provide concise, clear and precise answers focused on the questions. Assignments must be submitted digitally by the announced due date.

Uploaded by

surafel123emiru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views2 pages

Borana University

This document provides instructions for a database mini-project involving SQL commands. Students are asked to: 1. Write SQL commands to create a bank database with tables and records, and assign various permission levels to users matching bank roles. 2. Write SQL GRANT commands where a DBA assigns privileges to users who then assign privileges to other users, and revoke privileges from some users. Students are advised to provide concise, clear and precise answers focused on the questions. Assignments must be submitted digitally by the announced due date.

Uploaded by

surafel123emiru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Borana University

College of Natural and Computational science


Department of Computer Science
Advanced database system Miniproject (20%)

1. Briefly write commands for the following


a) Create Bank Manager has a database administrator DBA user and create the
Customertablewith the relevant attributes and insert at least 10 customer records under
BankManageruserlogin. (Note:- Assume what all attributes required for a customer in
bank).
b) Create 4 different users in bank for each work under Bank Manager login. (like clerk,
cashier,auditor & manager).
d) Give any user only view permission as per the realistic bank role. e) Give any user
only to update permission the balance attribute when there is a cashdepositorcash
withdrawal as per the realistic bank role.
f) Give auditor only delete permission and show any delete transaction.

2. Suppose that the database administrator(DBA) creates four users: user1, user2, user3
anduser4. DBA issue the following GRANT command in SQL

“GRANT CREATETAB TO user2;”

And suppose that user2 creates the three base tables department, student and course.

Do the following questions based on the given direction.

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

∙ Assignment should be submit through google classroom up to due date


announced(November10, 2023) on google classroom but after due date the google system
not allowfor youtosubmityour assignment

You might also like