Question

In: Computer Science

Suppose there are three users: DBA, user1, user2, user3. Please specify whether user1, user2, user3 have...

Suppose there are three users: DBA, user1, user2, user3. Please specify whether user1, user2, user3 have update privilege on checking and saving table after execution of the following SQL statements.


DBA:
Grant update on checking to user1 with grant option;
Grant update on checking to user2 with grant option;
Grant update on saving to public;
Grant update on saving to user2 with grant option;
User1:
Grant update on checking to user3;
User 2:
Grant update on checking to user3;
Grant update on saving to user3;
DBA:
Revoke update on checking from user1;
Revoke update on saving from public;

Solutions

Expert Solution

Step 1:- In first query DBA provides update privilege to user1 on checking table.

Step 2:- In second query DBA provides update privilege to user2 on checking table.

Step 3:- In third query DBA provides update privilege on saving table to all users.

Step 4:- In fourth query DBA provides update privilege to user2 on saving table.

Step 5:- In fifth query user1 provides update privilege to user3 on checking table.

Step 6:- In sixth query user2 provides update privilege to user3 on checking table.

Step 7:- In seventh query user2 provides update privilege to user3 on saving table.

Step 8:- In eighth query DBA revokes access from user1 from checking table.

Step 9:- In ninth query DBA revokes access from all users from saving table.

Conclusion

  1. Hence in the end user1 has update privilege to none of the table.
  2. user2 has update privilege to checking table only.
  3. user3 has update privilege to checking table only.

Related Solutions

Suppose you have to specify the moment in time when a given event occurred, a "zero...
Suppose you have to specify the moment in time when a given event occurred, a "zero time". The record must be accurate to the minute, and be obtainable even after thousands of years. All the measures of time we currently have are relative to a well defined zero, but the zero is not easy to backtrack exactly. One possibility would be to take a sample of Carbon with a well defined, very accurate amount of 14C, and say: the event...
Suppose you have to specify the moment in time when a given event occurred, a "zero...
Suppose you have to specify the moment in time when a given event occurred, a "zero time". The record must be accurate to the minute, and be obtainable even after thousands of years. All the measures of time we currently have are relative to a well defined zero, but the zero is not easy to backtrack exactly. One possibility would be to take a sample of Carbon with a well defined, very accurate amount of 14C, and say: the event...
Suppose that the average number of Facebook friends users have is normally distributed with a mean...
Suppose that the average number of Facebook friends users have is normally distributed with a mean of 144 and a standard deviation of about 52. Assume fourteen individuals are randomly chosen. Answer the following questions. Round all answers to 4 decimal places where possible. For the group of 14, find the probability that the average number of friends is less than 145. Find the first quartile for the average number of Facebook friends. For part b), is the assumption that...
Suppose that the average number of Facebook friends users have is normally distributed with a mean...
Suppose that the average number of Facebook friends users have is normally distributed with a mean of 119 and a standard deviation of about 41. Assume forty-five individuals are randomly chosen. Answer the following questions. Round all answers to 4 decimal places where possible. What is the distribution of ¯xx¯? ¯xx¯ ~ N(,) For the group of 45, find the probability that the average number of friends is more than 114. Find the third quartile for the average number of...
Suppose that the average number of Facebook friends users have is normally distributed with a mean...
Suppose that the average number of Facebook friends users have is normally distributed with a mean of 117 and a standard deviation of about 58. Assume forty-two individuals are randomly chosen. Answer the following questions. Round all answers to 4 decimal places where possible. What is the distribution of ¯xx¯? ¯xx¯ ~ N(,) For the group of 42, find the probability that the average number of friends is less than 104. Find the first quartile for the average number of...
Suppose that the average number of Facebook friends users have is normally distributed with a mean...
Suppose that the average number of Facebook friends users have is normally distributed with a mean of 131 and a standard deviation of about 49. Assume seven individuals are randomly chosen. Answer the following questions. Round all answers to 4 decimal places where possible. What is the distribution of ¯xx¯? ¯xx¯ ~ N(,) For the group of 7, find the probability that the average number of friends is less than 150. Find the first quartile for the average number of...
Suppose that the average number of Facebook friends users have is normally distributed with a mean...
Suppose that the average number of Facebook friends users have is normally distributed with a mean of 121 and a standard deviation of about 40. Assume forty-five individuals are randomly chosen. Answer the following questions. Round all answers to 4 decimal places where possible. What is the distribution of x? x ~ N(___,____) For the group of 45, find the probability that the average number of friends is less than 115. _____ Find the first quartile for the average number...
Suppose that the average number of Facebook friends users have is normally distributed with a mean...
Suppose that the average number of Facebook friends users have is normally distributed with a mean of 117 and a standard deviation of about 45. Assume forty-seven individuals are randomly chosen. Answer the following questions. Round all answers to 4 decimal places where possible. What is the distribution of ¯ x x¯ ? ¯ x x¯ ~ N(,) For the group of 47, find the probability that the average number of friends is more than 121. Find the third quartile...
The DBA and a Database Developer have different roles.How do these roles differ and under...
The DBA and a Database Developer have different roles. How do these roles differ and under what circumstances could they overlap?
Determine and specify whether the statement is best characterized as “True,” “False,” or if there is...
Determine and specify whether the statement is best characterized as “True,” “False,” or if there is insufficient information to make a definitive conclusion (“Uncertain”) (choose only one of these three responses); and (ii) Provide a brief explanation justifying your determination You must provide an explanation to receive any points. Do not simply repeat the statement if it is determined to be true, and do not simply negate the statement if it is determined to be false. Either one of the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT