From 46b5278cb6b9a3f696c5d291ae423fbd3842eef3 Mon Sep 17 00:00:00 2001 From: Resilient08 <58645288+Resilient08@users.noreply.github.com> Date: Wed, 8 Jul 2020 16:10:30 -0400 Subject: [PATCH 1/3] finished part 1 --- Part 1.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Part 1.sql diff --git a/Part 1.sql b/Part 1.sql new file mode 100644 index 0000000..78ca961 --- /dev/null +++ b/Part 1.sql @@ -0,0 +1,3 @@ +SELECT productName, productLine, buyPrice +FROM products +ORDER BY buyPrice DESC; \ No newline at end of file From 3de3138d11967c1578f1a9a4c32cfed35909b083 Mon Sep 17 00:00:00 2001 From: Resilient08 <58645288+Resilient08@users.noreply.github.com> Date: Thu, 9 Jul 2020 13:58:35 -0400 Subject: [PATCH 2/3] completed parts 2 and 3 --- Part2.sql | 3 +++ Part3.sql | 3 +++ Part4.sql | 0 Part5.sql | 0 Part6.sql | 0 5 files changed, 6 insertions(+) create mode 100644 Part2.sql create mode 100644 Part3.sql create mode 100644 Part4.sql create mode 100644 Part5.sql create mode 100644 Part6.sql diff --git a/Part2.sql b/Part2.sql new file mode 100644 index 0000000..4f9c217 --- /dev/null +++ b/Part2.sql @@ -0,0 +1,3 @@ +SELECT contactFirstName, contactLastName, city +FROM customers +ORDER BY contactLastName ASC; \ No newline at end of file diff --git a/Part3.sql b/Part3.sql new file mode 100644 index 0000000..6714281 --- /dev/null +++ b/Part3.sql @@ -0,0 +1,3 @@ +SELECT DISTINCT status +FROM orders +ORDER BY status ASC; \ No newline at end of file diff --git a/Part4.sql b/Part4.sql new file mode 100644 index 0000000..e69de29 diff --git a/Part5.sql b/Part5.sql new file mode 100644 index 0000000..e69de29 diff --git a/Part6.sql b/Part6.sql new file mode 100644 index 0000000..e69de29 From ade2258695d181b44d1d05430cd5bab5cc256469 Mon Sep 17 00:00:00 2001 From: Resilient08 <58645288+Resilient08@users.noreply.github.com> Date: Thu, 9 Jul 2020 15:15:22 -0400 Subject: [PATCH 3/3] completed Parts 4-6 --- Part4.sql | 4 ++++ Part6.sql | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Part4.sql b/Part4.sql index e69de29..4848f8a 100644 --- a/Part4.sql +++ b/Part4.sql @@ -0,0 +1,4 @@ +SELECT * +FROM payments +WHERE paymentDate >= '2005-01-01' +ORDER BY paymentDate ASC; \ No newline at end of file diff --git a/Part6.sql b/Part6.sql index e69de29..f83ba00 100644 --- a/Part6.sql +++ b/Part6.sql @@ -0,0 +1,4 @@ +SELECT productName, productLine, productScale, productVendor +FROM products +WHERE (productLine = 'Classic Cars' OR productLine = 'Vintage Cars') +ORDER BY productName ASC, productLine DESC; \ No newline at end of file