Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that a user root with a password 'csit 1 1 5 ' created a database called banks. The user executed CREATE TABLE statements given

Assume that a user root with a password 'csit115' created a database called banks. The user
executed CREATE TABLE statements given on page 4 of the examination paper to create the
relational tables in the database banks. The user root nominates a database banks as a default
database.
Write SQL script that performs the following operations as a user root. Assume that a user root is
already connected to the database.
(1) The user root creates two users: clerk and manager.
(1 mark)
(2) The user root grants the read and write access rights on relational table ACCOUNT to the
manager. The read and write access rights cannot be propagated to other roles or users.
(1 mark)
(3) The user root grants the rights to insert the rows into relational tables TRANSACTION to
clerk. The access rights can be propagated to other roles or users.
(1 mark)
(4) The user root grants the update privilege on all relational tables in the banks database to the
manager. The privilege cannot be propagated to other roles or users.
(1 mark)
(5) The user root grants the read access rights to information about the account number, bank
name, and the total number of transactions happened for each account to the manager. The
privilege cannot be propagated to other roles or users.
(2 marks)
(6) The user root sets the resource limits for the users created in step (2) and it allows maximum 3
concurrent connections.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions