Question: Code example 7 - 1 SELECT vendor _ name, COUNT ( * ) AS number _ of _ invoices, MAX ( invoice _ total -
Code example
SELECT vendorname, COUNT AS numberofinvoices,
MAXinvoicetotal paymenttotal credittotal AS balancedue
FROM vendors v
JOIN invoices i
ON vvendorid ivendorid
WHERE invoicetotal paymenttotal credittotal
SELECT AVGinvoicetotal paymenttotal credittotal
FROM invoices
GROUP BY vendorname
ORDER BY balancedue DESC
Refer to code example When this query is executed, the rows will be sorted by
Group of answer choices
invoiceid
vendorid
balancedue in descending sequence
vendorid and then by balancedue in descending sequence
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
