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, 21.06.2019 14:00
Proportion of us adults who own a cell phone. in a survey of 1006 us adults in 2014, 90% said they had a cell phone.1
Answers: 2
question
Business, 21.06.2019 18:40
Reactive power generation has the following capital structure. its corporate tax rate is 40%. security market value required rate of return debt $ 30 million 4 % preferred stock 30 million 6 common stock 40 million 10 what is its wacc? (do not round intermediate calculations. enter your answer as a percent rounded to 2 decimal places.)
Answers: 2
question
Business, 22.06.2019 12:50
Two products, qi and vh, emerge from a joint process. product qi has been allocated $34,300 of the total joint costs of $55,000. a total of 2,900 units of product qi are produced from the joint process. product qi can be sold at the split-off point for $11 per unit, or it can be processed further for an additional total cost of $10,900 and then sold for $13 per unit. if product qi is processed further and sold, what would be the financial advantage (disadvantage) for the company compared with sale in its unprocessed form directly after the split-off point?
Answers: 2
question
Business, 22.06.2019 20:30
1. what is the lowest balance during this period? 2. lily just received her bank statement below. a. what does the bank think her ending balance is? b. how much more does the bank think lily has? c. what transactions are missing? 3. what is the danger of not balancing your bank account? lily’s bank statement deposits: 2/25 $35 2/26 $20 3/1 $256.32 checks: 2/24 ck #301 $25 2/26 #302 $150 debit card: 2/24 american eagle $75.48 2/25 chick fa la $4.67 2/27 mcdonalds $3.56 2/28 chevron $34.76 withdrawal: 2/27 $40 beginning balance $423.34 deposits $311.32 total debits $333.47 ending balance $401.19
Answers: 1
You know the right answer?
Write a CREATE VIEW statement that defines a view named InvoiceBasic that returns three columns: Ven...
Questions
question
Mathematics, 19.10.2019 22:30
question
Biology, 19.10.2019 22:30
question
Mathematics, 19.10.2019 22:30
question
Social Studies, 19.10.2019 22:30
Questions on the website: 13722367