Question: Please do the following Queries for the data in classicmodels database: 1 . create a view called salePerOrder that represents orderNumber and total sales for

Please do the following Queries for the data in classicmodels database: 1. create a view called salePerOrder that represents orderNumber and total sales for each order. Then select all data in this view to show it.2. create a view called bigSalesOrder based on the salesPerOrder view to show every sales order number and total when total is greater than 60,000. Then select all data in this view to show it.3. create a view called orderPayment that represents orderNumber, checkNumber and amount for orders. Then select all data in this view to show it.4. create a view named officeInfo. The view refers to officeCode, phone and city. 5. Then update the phone number of the office with officeCode 4 through the officeInfo view to '+33147235555'. Then select all data for this updated one to show it after updating.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!