subject

1. 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: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:50
What are the advantages of google cloud ?
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
You know the right answer?
1. write a create view statement that defines a view named invoicebasic that returns three columns:...
Questions
question
History, 12.01.2020 12:31
question
Spanish, 12.01.2020 12:31
question
Mathematics, 12.01.2020 12:31