This repository has been archived on 2026-10-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
chinook/invoice_totals.sql
2022-02-21 15:53:22 -06:00

11 lines
322 B
SQL

SELECT
INVOICE.Total, CUSTOMER.FirstName, CUSTOMER.LastName, EMPLOYEE.FirstName, Employee.LastName, Invoice.BillingCountry
FROM
((Customer
INNER JOIN
Employee ON Employee.EmployeeId = Customer.SupportRepId)
INNER JOIN
INVOICE ON INVOICE.CustomerId = Customer.CustomerId)
ORDER BY
INVOICE.Total DESC;