Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. (10 points) For the Elmasri company database, write the SQL to do the following (you do not have to implement these queries, just write

image text in transcribed

6. (10 points) For the Elmasri company database, write the SQL to do the following (you do not have to implement these queries, just write them): (a) Give Bob the privelege to read the entire PROJECT table, and the privelege to delete rows, and Bob should also be able to pass this privelege on to other users (b) Revoke Bob's privelege to delete rows, and also revoke the privelege of anybody else who got this privelege from Bob. (c) Give Alice the privelege to insert new rows into the PROJECT table, but Alice can't pass this privelege to other users. (d) Give Mike the privelege to read the ssn and name of those employees who work in the finance department and Mike should also be able to pass this privelege on to other users. 7. (15 points) For the Elmasri company database, write SQL constraints or assertions for each of the following (each part is to be done independently of the other parts). You do not have to implement these queries, just write them (a) No employee can have a salary of less than 38,000 (b) No employee can have more than 5 dependents

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Develop a program for effectively managing diversity. page 303

Answered: 1 week ago

Question

List the common methods used in selecting human resources. page 239

Answered: 1 week ago