67%(3)2 out of 3 people found this document helpful
This preview shows page 1 - 4 out of 4 pages.
[Type here]To perform the following assignments, refer to the tables in the JustLee Books database.1. 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.CREATE VIEW CONTACTASSELECT name, phone FROM publisher;2. Change the CONTACT view so that no users can accidentally perform DML operations on the view.CREATE OR REPLACE VIEW CONTACTAS SELECT name, phone FROM publisherWITH READ ONLY;
[Type here]3. Create a view called HOMEWORK13 that includes the columns named Col1 and Col2 from the FIRSTATTEMPT table. Make sure the view is created even if the FIRSTATTEMPT