100%(8)8 out of 8 people found this document helpful
This preview shows page 1 - 2 out of 3 pages.
1Chapter 13 Hands OnQuestion1:Create a view that lists the name and phone number of the contact person at each publisher. Don't include the publisher's ID in the view. Name the view CONTACT.Answer:CREATE VIEW CONTACT AS SELECT name, phone FROM publisher;Question 2: Change the CONTACT view so that no users can accidentally perform DML operations on the view.Answer:CREATE OR REPLACE VIEW CONTACT AS SELECT name, phone FROM publisher WITH READ ONLY;Question 3:Create a view called HOMEWORK13 that includes the columns named Col1 and Col2 fromthe FIRSTATTEMPT table. Make sure the view is created even if the FIRSTATTEMPT table doesn’t exist.Answer:CREATE FORCE VIEW homework13 AS SELECT Col1, Col2 FROM firstattempt;Question 4:attempt to view the structure of the homework 13 view.Answer:DESC homework13;Question 5: Create a view that lists the ISBN and title for each book in inventory along with the name and phone number of the person to contact if the book needs to be reordered. Name the view REORDERINFO.