2) Create a SELECT statement that returns the count, average, max and min of the invoices submitted by each vendor, who has submitted more than one invoice. Order by the number of invoices in descending order. Should return 12 rows. number of vendor name average_invoice_total min_invoice_total max_invoice total invoices Federal Exoress Corporation United Parcel Service Zvlka Desian Pacific Bel Malov Lithoarachina Inc Roadwav Packaoe Svstem. Inc Blue Cross Compuserve Inoram Data Reoroductions Coro IBM Cardinal Business Media. Inc. 47 93. 15 10.00 739.20 9 2575.33 1927.54 3813.33 867.53 313. 55 1962. 13 46.21 28.50 16.33 23978.48 10976.06 37966. 19 10.92 6.00 25.67 188.00 116.00 224.00 9.95 9.95 9.95 1077.21 579. 42 1575.00 2. 10963.66 85.31 21842.00 1083. 58 600.06 116. 54 90.36 132.68 175.00

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
2) Create a SELECT statement that returns the count, average, max and min of the invoices submitted by
each vendor, who has submitted more than one invoice. Order by the number of invoices in descending
order. Should return 12 rows.
number of
vendor name
average_invoice_total min_invoice_total max_invoice_total
invoices
Federal Exoress Corporation
United Parcel Service
47
93.15
10.00
739.20
2575.33
1927.54
3813.33
Zvlka Desian
Pacific Bel
Malov Lithoarachina Inc
313. 55
16.33
867.53
1962. 13
28.50
46.21
23978.48
10976.06
37966, 19
25.67
224.00
Roadwav Packaoe Svstem. Ic
4
10.92
6.00
Blue Cross
Comouserve
Incram
Data Reoroductions Corp
IBM
|Cardinal Business Media. Inc.
188.00
116.00
9.95
9.95
9.95
2
1077.21
579. 42
1575.00
85.31
116.54
10963.66
21842.00
600.06
132.68
1083. 58
90.36
175.00
Transcribed Image Text:2) Create a SELECT statement that returns the count, average, max and min of the invoices submitted by each vendor, who has submitted more than one invoice. Order by the number of invoices in descending order. Should return 12 rows. number of vendor name average_invoice_total min_invoice_total max_invoice_total invoices Federal Exoress Corporation United Parcel Service 47 93.15 10.00 739.20 2575.33 1927.54 3813.33 Zvlka Desian Pacific Bel Malov Lithoarachina Inc 313. 55 16.33 867.53 1962. 13 28.50 46.21 23978.48 10976.06 37966, 19 25.67 224.00 Roadwav Packaoe Svstem. Ic 4 10.92 6.00 Blue Cross Comouserve Incram Data Reoroductions Corp IBM |Cardinal Business Media. Inc. 188.00 116.00 9.95 9.95 9.95 2 1077.21 579. 42 1575.00 85.31 116.54 10963.66 21842.00 600.06 132.68 1083. 58 90.36 175.00
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education