Business
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.

answer
Answers: 3

Other questions on the subject: Business

image
Business, 22.06.2019 19:30, cyynntthhiiaa4
Fly-by products, inc. operates primarily in the united states and has several segments. for the following segment, determine whether it is a cost center, profit center, or investment center: international operations- acts as an independent segment responsible for all facets of the business outside of the united states. select one: a. cost center b. profit center c. investment center
Answers: 2
image
Business, 23.06.2019 01:30, zacharysharpe2805
How is systematic decision making related to being financially responsible
Answers: 1
image
Business, 23.06.2019 02:30, rosier2230
Astudent finds data on an internet site that contains financial information about selected companies. he plans to analyze the data and use the results to develop a stock investment strategy. what kind of data source is he using? what concerns might you have about drawing conclusions from this data set?
Answers: 1
image
Business, 23.06.2019 10:40, 19sierraamber
The mccolls have made an offer on a new home. the home is new construction and scheduled to be completed by the end of the year. they provide a purchase deposit--a check in the amount of $40,000--to their agent, suzette. suzette, at the broker's direction, deposits the earnest money in the broker's trust fund account within two business days of receipt of the funds. did suzette follow the proper procedures? a. no, the check should not have been cashed. if a check is used as an earnest money deposit, it is to be held until acceptance of the offer. the seller must also be informed the buyer's check is being held and not negotiated. b. yes, suzette deposited the earnest money in the broker's trust fund account as directed. she also deposited the check within three business days of receipt. unless there were written instructions to hold the check until acceptance of the offer, the check may be cashed. c. no, suzette needed to deposit the earnest money in the broker's trust fund account within two days of receipt, not necessarily two business days. d. both a and c
Answers: 2
Do you know the correct answer?
Write a CREATE VIEW statement that defines a view named InvoiceBasic that returns three columns: Ven...

Questions in other subjects:

Konu
Mathematics, 31.05.2021 21:00