Question: Q.3) (25 points) Granting and Revoking Privileges Write statements that do the following: - Grant privileges to ap_superuser as follows: o SELECT/UPDATE/INSERT/DELETE privileges to all
Q.3) (25 points) Granting and Revoking Privileges
Write statements that do the following:
- Grant privileges to ap_superuser as follows: o SELECT/UPDATE/INSERT/DELETE privileges to all tables in ap database
- Grant privileges to ap_dev as follows: o SELECT/UPDATE/INSERT privileges to all tables in ap database
- Grant privileges to ap_guest as follows: o SELECT privileges to all tables
o UPDATE privileges to VENDORS table only
- Revoke all privileges from ap_guest
- Revoke INSERT privileges from ap_dev
pg. 2
Q.4) (25 points) Viewing User and Privilege Information
Write statements to do the following:
- Display a list of user and host for all users, sort by host, then user.
- Show grants for the currently logged on user
- Show privileges for lazydaisy
- Show privileges for ap_superuser
- Show privileges for ap_guest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
