From 26c3db5ebba1b3f2d8759432661fe88453f32eac Mon Sep 17 00:00:00 2001 From: Resilient08 <58645288+Resilient08@users.noreply.github.com> Date: Mon, 13 Jul 2020 14:13:01 -0400 Subject: [PATCH 1/2] finished part 1 --- Part1.sql | 4 ++++ Part2.sql | 0 2 files changed, 4 insertions(+) create mode 100644 Part1.sql create mode 100644 Part2.sql diff --git a/Part1.sql b/Part1.sql new file mode 100644 index 0000000..6fac8ad --- /dev/null +++ b/Part1.sql @@ -0,0 +1,4 @@ +SELECT customers.customerName, employees.lastName, employees.firstName +FROM customers +INNER JOIN employees ON customers.salesRepEmployeeNumber=employees.employeeNumber +ORDER BY customerName ASC; \ No newline at end of file diff --git a/Part2.sql b/Part2.sql new file mode 100644 index 0000000..e69de29 From bfc027991fb0a2ee22dc97aa6f4188ba10e8e04d Mon Sep 17 00:00:00 2001 From: Resilient08 <58645288+Resilient08@users.noreply.github.com> Date: Mon, 13 Jul 2020 14:53:50 -0400 Subject: [PATCH 2/2] finished part 2 --- Part2.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Part2.sql b/Part2.sql index e69de29..d849ff4 100644 --- a/Part2.sql +++ b/Part2.sql @@ -0,0 +1,3 @@ +SELECT productName AS 'Product Name',(quantityOrdered * priceEach) AS 'Total sale', quantityOrdered as 'Total # Ordered' +FROM products JOIN orderdetails ON products.productcode=orderdetails.productcode +ORDER BY (quantityOrdered * priceEach) DESC; \ No newline at end of file