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

Other questions on the subject: Business

image
Business, 22.06.2019 19:30, jcastronakaya
When it is 4: 00 a. m. in halifax, it is 1: 00 p. m. in karachi, and when it is 9: 00 a. m. in karachi, it is 5: 00 a. m. in warsaw. mary left halifax to fly to karachi, but she accidentally left her watch on warsaw time. according to mary’s watch, she left halifax at 9: 40 p. m. on monday. the local time when she arrived at karachi was 3: 00 p. m. tuesday. how long was mary’s flight? a. 9 hours, 20 minutes b. 13 hours, 20 minutes c. 14 hours, 20 minutes d. 17 hours, 20 minutes
Answers: 1
image
Business, 22.06.2019 21:40, andyboehm7411
The following items could appear on a bank reconciliation: a. outstanding checks, $670. b. deposits in transit, $1,500. c. nsf check from customer, no. 548, for $175. d. bank collection of note receivable of $800, and interest of $80. e. interest earned on bank balance, $20. f. service charge, $10. g. the business credited cash for $200. the correct amount was $2,000. h. the bank incorrectly decreased the business's by $350 for a check written by another business. classify each item as (1) an addition to the book balance, (2) a subtraction from the book balance, (3) an addition to the bank balance, or (4) a subtraction from the bank balance.
Answers: 1
image
Business, 23.06.2019 00:30, yfnal3x
What level of measurement (nominal, ordinal, interval, ratio) is appropriate for the movie rating system that you see in tv guide?
Answers: 2
image
Business, 23.06.2019 00:50, aaronlikly
On december 31 of the current year, the unadjusted trial balance of a company using the percent of receivables method to estimate bad debt included the following: accounts receivable, debit balance of $97,900; allowance for doubtful accounts, credit balance of $1,031. what amount should be debited to bad debts expense, assuming 6% of outstanding accounts receivable at the end of the current year are estimated to be uncollectible?
Answers: 1
You know the right answer?
Write a CREATE VIEW statement that defines a view named InvoiceBasic that returns three columns: Ven...

Questions in other subjects:

Konu
Social Studies, 15.02.2021 04:20