please I need help with 1 through 5. Grant the user Kwame the privilege to displ
ID: 3819112 • Letter: P
Question
please I need help with 1 through 5.
Grant the user Kwame the privilege to display (i.e. SELECT) all data for any book in the BOOK table and the privilege to UPDATE the BK_LIST_PRICE only for any book in the BOOK table. Grant the user Kwame the privilege to display (i.e. SELECT) all data for any book in the BOOK table where the PBID = 217; and the privilege to UPDATE the BK_LIST_PRICE only for any book in the BOOK table where the PBID = 217. Create a view Author_2K13 that includes the Name and Date-of-Birth only for each Author born after January 1, 2O13. Create a view PUBLISHER_Z23284_5 that includes the PBID, PB_NAME, PB_STREET, PB_ZIPCODE & PB_PHONE for each Publisher whose PB_ZIPCODE is 23284 or 23285 5. Create a view PUBLISHER|_BK_Z23284_5 that includes the BKID, BK_TITLE, BK_LIST_PRICE, PB_ID, PB_NAME for those Books whose List Price is less than $250.00 and the corresponding PB_ZIPCODE is 23284 or 23285. Write a SQL query against the view Author_2K13 that includes the Name and Date-of-Birth only for each Author born after June 30, 2014. Grant the user Abena the privilege to display (i.e. SELECT) the PBID, PB_NAME, PB_STREET, PB_ZIPCODE & PB_PHONE for each Publisher whose PB_ZIPCODE is 23284 or 23285 only. Also grant her the privileges to INSERT and DELETE records for each Publisher whose PB_ZIPCODE is 23284 or 23285 only. Write a SQL query that will list the BK_TITLE, BK_LIST_PRICE, PB-NAME for those Books whose BK_LIST_PRICE is less than $250.00 and the corresponding PB_ZIPCODE is 23284 or 23285. Grant the user Abena the privilege to display (i.e. SELECT) the BK_TITLE, BK_LIST_PRICE, PB_NAME for those Books whose BK_LIST_PRICE e is less than $250.00 and corresponding PB_ZIPCODE is 23284 or 23285.Explanation / Answer
Answer:
1.
a) To select from BOOK:
GRANT SELECT ON BOOK TO Kwame
b) To update in BOOK:
GRANT UPDATE (BK_LIST_PRICE) ON BOOK TO Kwame
2. In this case, we will first need to create a view as below:
a) To select where PBID = 217:
GRANT SELECT ON BOOK_PBID_217 TO Kwame
b) To update in BOOK:
GRANT UPDATE (BK_LIST_PRICE) ON BOOK_PBID_217 TO Kwame
3.
4.
5.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.