CIS111 Chapter 5 Lab Problems 3. Display the vendor name, number of invoices, average and total invoice for any vendor that has more than 2 invoices. Please show the total of each column in the bottom row. Please use the following column aliases: Number of Invoices Invoice Average Invoice Total 4. Display the vendors state, city, the invoice total for all vendors Whose average invoice is over 3000 dollars. Please report the total of each state also. Please do not include (remove) the state of California from the output.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Hello! Need some help with these quieries! I've included the questions and the invoice colums and vendors column from my database. Thanks!
CIS111 Chapter 5 Lab Problems
3. Display the vendor name, number of invoices, average and total invoice for any vendor
that has more than 2 invoices. Please show the total of each column in the bottom row.
Please use the following column aliases:
Number of Invoices
Invoice Average
Invoice Total
4. Display the vendors state, city, the invoice total for all vendors Whose average invoice is
over 3000 dollars. Please report the total of each state also. Please do not include
(remove) the state of California from the output.
Transcribed Image Text:CIS111 Chapter 5 Lab Problems 3. Display the vendor name, number of invoices, average and total invoice for any vendor that has more than 2 invoices. Please show the total of each column in the bottom row. Please use the following column aliases: Number of Invoices Invoice Average Invoice Total 4. Display the vendors state, city, the invoice total for all vendors Whose average invoice is over 3000 dollars. Please report the total of each state also. Please do not include (remove) the state of California from the output.
ery4.sc
...
CONNECTIONS
V SERVERS
BB日
User
E dbo.invoicelineltems
D Ru
m dbo.Invoices
Columns
8 InvoicelD (PK, int, not null)
E vendoriD (FK, int, not null)
E InvoiceNumber (varchar(50), not null)
E InvoiceDate (smalldatetime, not null)
E InvoiceTotal (money, not null)
E PaymentTotal (money, not null)
E CreditTotal (money, not nul)
E TermsID (FK, int, not null)
B InvoiceDueDate (smalldatetime, not null).
E PaymentDate (smalldatetime, null)
> Keys
Messa
3
Constraints
> Triggers
Indexes
Statistics
> m dbo.Terms
m dbo Vendors
Columns
E VendoriD (PK, int, not null)
E VendorName (varchar(50), not null)
E VendorAddresst (varchar(50), nul)
E vendorAddress2 (varchar(50), null)
PRO
E vendorCity (varchar(50), not null)
E vendorState (char(2), not null)
E Vendorzipcode (varchar(20), not nul)
E vendorPhone (varchar(50), null)
No
E VendorContactLName (varchar(50), null)
E VendorContactFName (varchar(50), null)
E DefaultTermsID (FK, int, not null)
E DefaultAccountNo (FK, int, not null)
Keys
> AZURE
> SOL SERVER BIG DATA CLUSTERS
O 6 A0
Transcribed Image Text:ery4.sc ... CONNECTIONS V SERVERS BB日 User E dbo.invoicelineltems D Ru m dbo.Invoices Columns 8 InvoicelD (PK, int, not null) E vendoriD (FK, int, not null) E InvoiceNumber (varchar(50), not null) E InvoiceDate (smalldatetime, not null) E InvoiceTotal (money, not null) E PaymentTotal (money, not null) E CreditTotal (money, not nul) E TermsID (FK, int, not null) B InvoiceDueDate (smalldatetime, not null). E PaymentDate (smalldatetime, null) > Keys Messa 3 Constraints > Triggers Indexes Statistics > m dbo.Terms m dbo Vendors Columns E VendoriD (PK, int, not null) E VendorName (varchar(50), not null) E VendorAddresst (varchar(50), nul) E vendorAddress2 (varchar(50), null) PRO E vendorCity (varchar(50), not null) E vendorState (char(2), not null) E Vendorzipcode (varchar(20), not nul) E vendorPhone (varchar(50), null) No E VendorContactLName (varchar(50), null) E VendorContactFName (varchar(50), null) E DefaultTermsID (FK, int, not null) E DefaultAccountNo (FK, int, not null) Keys > AZURE > SOL SERVER BIG DATA CLUSTERS O 6 A0
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY