91%(11)10 out of 11 people found this document helpful
This preview shows page 1 - 2 out of 2 pages.
Lab 13To 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. 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 ONLY3. 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 table doesn’t exist.CREATE VIEW homework13AS SELECT Col1, Col2 FROM firstattempt4. Attempt to view the structure of the HOMEWORK13 view. DESC homework13
You've reached the end of your free preview.
Want to read both pages?
The Table, Prime number, Articles with example SQL code