From 7d08c85c2ee404042811956c52ef75e45d7df8bf Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Mon, 21 Feb 2022 15:02:27 -0600 Subject: [PATCH] saving work from ch 6 --- sales_agent_invoices.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sales_agent_invoices.sql diff --git a/sales_agent_invoices.sql b/sales_agent_invoices.sql new file mode 100644 index 0000000..7741fff --- /dev/null +++ b/sales_agent_invoices.sql @@ -0,0 +1,14 @@ +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; \ No newline at end of file