When this query is executed, the result set will contain SEL…
When this query is executed, the result set will contain SELECT vendor_name, COUNT(*) AS number_of_invoices, AVG(invoice_total – payment_total – credit_total) AS balance_due FROM vendors v JOIN invoices i ON v.vendor_id = i.vendor_id WHERE (invoice_total – payment_total – credit_total) >= (SELECT AVG(invoice_total – payment_total – credit_total) FROM invoices) GROUP BY vendor_name ORDER BY balance_due DESC;
Read Details