subject
Business, 14.02.2020 16:34 unkown77

Write a CREATE VIEW statement that defines a view named InvoiceBasic that returns three columns: VendorName, InvoiceNumber, and InvoiceTotal. Then, write a SELECT statement that returns all of the columns in the view, sorted by VendorName, where the first letter of the vendor name is N, O, or P.

2.Create a view named Top10PaidInvoices that returns three columns for each vendor: VendorName, LastInvoice (the most recent invoice date), and SumOfInvoices (the sum of the InvoiceTotal column). Return only the 10 vendors with the largest SumOfInvoices and include only paid invoices.

3.Create an updatable view named VendorAddress that returns the VendorID, both address columns, and the city, state, and zip code columns for each vendor. Then, write a SELECT query to examine the result set where VendorID=4. Next, write an UPDATE statement that changes the address so that the suite number (Ste 260) is stored in VendorAddress2 rather than in VendorAddress1.(Make sure to rerun your SELECT query in order to verify the change)

4.Create a view named AccountByVendor that returns the sum of InvoiceLineItemAmounts in the InvoiceLineItems table, grouped by VendorName and AccountDescription.

5.Modify the InvoiceBasic view created in exercise 1 to sort the result set by VendorName.

ansver
Answers: 3

Another question on Business

question
Business, 22.06.2019 19:50
Statistical process control charts: a. indicate to the operator the true quality of material leaving the process. b. display upper and lower limits for process variables or attributes and signal when a process is no longer in control. c. indicate to the process operator the average outgoing quality of each lot. d. display the measurements on every item being produced. e. are a graphic way of classifying problems by their level of importance, often referred to as the 80-20 rule.
Answers: 2
question
Business, 22.06.2019 23:40
Elite coffee and bakery, a cafĂŠ that offers a relaxing environment to enjoy quality coffees, teas, soups, and other menu items, has a poster in the front of its restaurants that reads, "we will always provide a quality product to our customers better meet the challenges of their day and always take the time to offer caring service one person at a time." this statement is elite's
Answers: 2
question
Business, 22.06.2019 23:50
The sarbanes-oxley act was passed to question 6 options: prevent fraud at public companies. replace all of the old accounting procedures with new ones. improve the accuracy of the company's financial reporting. both a and c
Answers: 3
question
Business, 23.06.2019 00:00
Which of the following is not a factor to consider when deciding whether to accept a special order? whether this order will hurt the brand name of the company whether other potential orders would be more profitable whether additional fixed costs would need to be incurred whether the offered price is sufficient to cover prime costs and fixed overhead allocated all of the above
Answers: 2
You know the right answer?
Write a CREATE VIEW statement that defines a view named InvoiceBasic that returns three columns: Ven...
Questions
question
Health, 13.04.2021 02:20
question
Mathematics, 13.04.2021 02:20
Questions on the website: 13722361