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 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..4848f8a --- /dev/null +++ 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/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..f83ba00 --- /dev/null +++ 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