Question
4. write a SELECT statement that returns one row for each general ledger account number that contains three columns: the account_description column from the general_ledger_accounts
4. write a SELECT statement that returns one row for each general ledger account number that contains three columns: the account_description column from the general_ledger_accounts table the count of the items in the Invoice_Line_Items table that have the same account number the sum of the line_item_amount columns in the invoice_line_items table that have the same account_number. return only those rows where the count of line items is greater than 1. This should return 10 rows. group result set by account description. sort the result set in descending sequence by the sum of the line item amounts.
Have seen this posted before but previous answers do not work. Unknown Column 'invoice_line_items' in field list/etc
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started