Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Scripts 2. Declare a table variable called Vendory. In that table, Insert the following data which should be generated with a query that joins the
Scripts
2. Declare a table variable called "Vendory". In that table, Insert the following data which should be generated with a query that joins the Vendors & Involces tables with aggregate functions and group by, where county is the number of Involces of each vendor and total is the PaymentTotal of each vendor. Refer to lecture WK3-Ch14-scripts(2) Slide#3. Then write a select query to display the data from the Vendory table variable to look like the following table. Some numbers in the total column may not match with yours. vname Federal Express Corporation United Parcel Service Zylka Design Pacific Bell Malloy Lithographing Inc Roadway Package System, Inc Blue Cross Cardinal Business Media, Inc Compuserve Data Reproductions com IBM Ingram county total 47 4167.13 9 23177.96 8 6740.25 6 171.01 5 86069.22 4 43.67 3 340.00 2 125.00 2 19.90 2 2.1842.00 2 1200.12 2 1575.00 2. Declare a table variable called "Vendory". In that table, Insert the following data which should be generated with a query that joins the Vendors & Invoices tables with aggregate functions and group by, where county is the number of invoices of each vendor and total is the paymentTotal of each vendor. Refer to lecture WK3-Ch14-scripts(2) Slide3. Then write a select query to display the data from the Vendory table variable to look like the following table. Some numbers in the total column may not match with yours Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started