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/sales_agent_invoices.sql
2022-02-21 15:02:27 -06:00

14 lines
252 B
SQL

SELECT
EMPLOYEE.FirstName, EMPLOYEE.LastName, InvoiceId
FROM
Employee
INNER JOIN
INVOICE
ON
CUSTOMER.CustomerId = INVOICE.CustomerId
INNER JOIN
Customer
ON
Customer.SupportRepId = Employee.EmployeeId
ORDER BY
InvoiceId ASC;