Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL Help Now insert the following record through the view. Can you do it? VENDOR_ID: 150 VENDOR_NAME: 'UK Postal Service' VENDOR_CITY: 'Madison VENDOR_STATE: 'WI' VENDOR_ZIP_CODE:

SQL Help

  1. Now insert the following record through the view. Can you do it? VENDOR_ID: 150 VENDOR_NAME: 'UK Postal Service' VENDOR_CITY: 'Madison VENDOR_STATE: 'WI' VENDOR_ZIP_CODE: '53707' DEFAULT_TERMS_ID: 1 DEFAULT_ACCOUNT_NUMBER: 552 Is the record inserted into Vendor table?
  2. Create one more view, the same as before only now add the WITH CHECK OPTION clause. Can you insert the following record?: VENDOR_ID: 151 VENDOR_NAME: Global Postal Service' VENDOR_CITY: 'Madison VENDOR_STATE: 'WI' VENDOR_ZIP_CODE: '53707' DEFAULT_TERMS_ID: 1 DEFAULT_ACCOUNT_NUMBER: 552 Why- Why not?
  3. Using the query above populate the table Customers_Statistics Hint: Use the statement INSERT INTO . SELECT Extra: What is going to happen if you rollback? Now add a new column to the table called Customer_Status that is a string of maximum length 20; Extra: What is going to happen if you rollback?
  4. Now lets update the table so that Customer_Status has the following values: ok when the number of orders is 0 or 1 good when the number of orders is 2 or more great when the number of orders is > 5 and the number of items is >5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago