Grant the user Kwame the privilege to display (i.e. SELECT) all data for any boo
ID: 3819193 • Letter: G
Question
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, 2013 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 Create a view PUBLISHER_BK_Z23284_5 that includes the PBID, PB_NAME, PB_STREET, PB_ZIPCODE & PB_PHONE for those publisher whose PB_ZIPCODE is 23284 or 23285 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 232285. 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 e 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
FIND THE BELOW SQL QUERIES FOR THE ABOVE PROBLEM STATEMENT
**************************
1.update BOOK set BK_LIST_PRICE = '23' where BKID='1';
2.update BOOK SET PBID = 217 WHERE BK_LIST_PRICE=(select * from BOOK WHERE PBID = 217);
3.SELECT AU_NAME,AU_DOB FROM AUTHOR WHERE AU_DOB > 'January 1 2013';
4.select PBID,PB_NAME,PB_STREET,PBZIP_CODE ,PB_PHONNE FROM PUBLISHER WHERE PB_ZIPCODE IN('23284','23285');
5.select BKID,BK_TITLE,BK_LIST_PRICE,PB_ID,PB_NAME FROM BOOKS WHERE LIST_PRICE< '250' AND PB_ZIPCODE IN('23284','23285');
6.SELECT AU_NAME,AU_DOB FROM AUTHOR WHERE AU_DOB > 'January 30 2014';
8. select BKID,BK_TITLE,BK_LIST_PRICE,PB_ID,PB_NAME FROM BOOKS WHERE LIST_PRICE< '250' AND PB_ZIPCODE IN('23284','23285');
***********************
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.