[SOLVED] SQL statements to grant the following privileges..

15.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

An owner of a relational database (ADMIN) created the following relations:

STUDENT = (ID, NAME, TOTAL_CREDIT, DEP_NUMBER)

INSTRUCTOR = (ID, NAME, SALARY, DEP_NUMBER)

COURSES = (COURS_ID, TITLE, DEP_NUMBER, CREDITS)

DEPARTMENT = (DEP_NUMBER, BUILDING, BUDGET)

The ADMIN user wants to pass privileges to other accounts X, Y and Z. Write the correct SQL statements to grant the following privileges.

1-Account X can retrieve or modify any relation except COURSES and can pass any of these privileges to other accounts.

2- Account Y can retrieve all the attributes of STUDENT and COURSES except TOTAL_CREDITDEP_NUMBER for both relations. [2 marks]

3- Account Z can retrieve any attribute of INSTRUCTOR but only for those whom working on the IT (DEP_NUMBER=2). [1 mark]

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.