Answered step by step
Verified Expert Solution
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
- 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?
- 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?
- 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?
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started