Danny Overman Chapter 13 hands on.docx - 1 Chapter 13 Hands On Question1 Create a view that lists the name and phone number of the contact person at

Danny Overman Chapter 13 hands on.docx - 1 Chapter 13 Hands...

This preview shows page 1 - 2 out of 3 pages.

1 Chapter 13 Hands On Question1: 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 from the 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.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 3 pages?

  • Fall '17
  • SharonL.Hoover
  • Foreign key, publisher., error message

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture