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 Systems: Design, Implementation, & Management
11th Edition
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 25P
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.
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning