Database Management Systems Quiz 6: SQL Privileges Granting, Quizzes of Database Management Systems (DBMS)

The solutions for question a, b, and c of quiz #6 in csc 440 - database management systems course. It explains how to grant select and insert privileges to specific users and their ability to grant these privileges to others using sql statements.

Typology: Quizzes

Pre 2010

Uploaded on 03/11/2009

koofers-user-usr
koofers-user-usr 🇺🇸

5

(1)

8 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSC 440 – Database Management Systems
Quiz #6
Student Name: Score:_________________
Assume Janeway owns the following tables:
Movie (title, year, length, inColor, studioName, producerC#)
Studio (name, address, presC#)
(a) (3 points) Suppose Janeway would like to give SELECT and INSERT privileges to Kirk on
Studio. Janeway would also like Kirk to give these privileges to others if necessary. Write the
SQL statement for Janeway.
GRANT SELECT, INSERT ON Studio TO kirk WITH GRANT OPTION;
(b) (3 points) Kirk later decides to give SELECT privilege on Studio to Picard, but he doesn’t
want Picard to give the privilege to others. Write the SQL statement for Kirk.
GRANT SELECT ON Studio TO Picard;
(c) (4 points) Draw the grant diagram.
Janeway
Select on
Studio**
Kirk
Select on
Studio*
Picard
Select on
Studio
Janeway
Insert on
Studio **
Kirk
Insert on
Studio*

Partial preview of the text

Download Database Management Systems Quiz 6: SQL Privileges Granting and more Quizzes Database Management Systems (DBMS) in PDF only on Docsity!

CSC 440 – Database Management Systems

Quiz

Student Name: Score:_________________

Assume Janeway owns the following tables:

Movie (title, year, length, inColor, studioName, producerC#)

Studio (name, address, presC#)

(a) (3 points) Suppose Janeway would like to give SELECT and INSERT privileges to Kirk on

Studio. Janeway would also like Kirk to give these privileges to others if necessary. Write the

SQL statement for Janeway.

GRANT SELECT, INSERT ON Studio TO kirk WITH GRANT OPTION;

(b) (3 points) Kirk later decides to give SELECT privilege on Studio to Picard, but he doesn’t

want Picard to give the privilege to others. Write the SQL statement for Kirk.

GRANT SELECT ON Studio TO Picard;

(c) (4 points) Draw the grant diagram.

Janeway Select on Studio** Kirk Select on Studio* Picard Select on Studio Janeway Insert on Studio ** Kirk Insert on Studio*