diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..ca4db24 Binary files /dev/null and b/.DS_Store differ diff --git a/part1.sql b/part1.sql new file mode 100644 index 0000000..0bae4f3 --- /dev/null +++ b/part1.sql @@ -0,0 +1 @@ +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..05dcd9c --- /dev/null +++ b/part2.sql @@ -0,0 +1 @@ +SELECT DISTINCT status FROM orders ORDER BY status; \ No newline at end of file diff --git a/part3.sql b/part3.sql new file mode 100644 index 0000000..05dcd9c --- /dev/null +++ b/part3.sql @@ -0,0 +1 @@ +SELECT DISTINCT status FROM orders ORDER BY status; \ No newline at end of file diff --git a/part4.sql b/part4.sql new file mode 100644 index 0000000..fb282f9 --- /dev/null +++ b/part4.sql @@ -0,0 +1 @@ +SELECT * FROM payments WHERE paymentDate > '2005-01-01' ORDER BY paymentDate; \ No newline at end of file diff --git a/part5.sql b/part5.sql new file mode 100644 index 0000000..c2a8c27 --- /dev/null +++ b/part5.sql @@ -0,0 +1 @@ +SELECT lastName, firstName, email, jobTitle FROM employees LEFT JOIN offices ON employees.officeCode=offices.officeCode WHERE city='San Francisco' ORDER BY lastName; \ No newline at end of file diff --git a/part6.sql b/part6.sql new file mode 100644 index 0000000..1f1a306 --- /dev/null +++ b/part6.sql @@ -0,0 +1 @@ +SELECT productName, productLine, productScale, productVendor FROM products WHERE productLine='Classic Cars' OR productLine='Vintage Cars' ORDER BY productLine DESC, productName; \ No newline at end of file