Question: SELECT gla.account _ description , COUNT ( * ) , SUM ( ili . line _ item _ amount ) , invoice _ date FROM
SELECT
gla.accountdescription
COUNT
SUMililineitemamount
invoicedate
FROM generalledgeraccounts gla
INNER JOIN invoicelineitems ili
ON ili.accountnumber gla.accountnumber
GROUP BY gla.accountdescription
HAVING COUNT
ORDER BY SUMililineitemamount DESC
;
Modify the solution to exercise so it returns only invoices dated in the second quarter of April to June This should still return rows but with some different line item counts for each vendor. Hint: Join to the Invoices table to code a search condition based on invoicedate.
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
