diff --git a/offices.sql b/offices.sql new file mode 100644 index 0000000..e69de29 diff --git a/orderdetails.sql b/orderdetails.sql new file mode 100644 index 0000000..e69de29 diff --git a/part1-products.sql b/part1-products.sql new file mode 100644 index 0000000..9aca895 --- /dev/null +++ b/part1-products.sql @@ -0,0 +1,3 @@ +SELECT productName AS 'Name', productLine AS 'Product line', buyPrice AS 'Buy Price' +FROM products +ORDER BY buyPrice DESC; \ No newline at end of file diff --git a/part2-customers.sql b/part2-customers.sql new file mode 100644 index 0000000..ef5c0cf --- /dev/null +++ b/part2-customers.sql @@ -0,0 +1,4 @@ +SELECT contactFirstName AS 'First Name', contactLastName AS 'Last Name', city AS 'City' +FROM customers +WHERE country = 'Germany' +ORDER BY contactLastName; \ No newline at end of file diff --git a/part3-orders.sql b/part3-orders.sql new file mode 100644 index 0000000..47161ad --- /dev/null +++ b/part3-orders.sql @@ -0,0 +1 @@ +SELECT * FROM [orders] LIMIT 6; \ No newline at end of file diff --git a/part4-payments.sql b/part4-payments.sql new file mode 100644 index 0000000..1341316 --- /dev/null +++ b/part4-payments.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-employees.sql b/part5-employees.sql new file mode 100644 index 0000000..16f0fd5 --- /dev/null +++ b/part5-employees.sql @@ -0,0 +1,4 @@ +SELECT lastName, firstName, email, jobTitle +FROM employees, offices +WHERE city = 'San Francisco' +ORDER BY lastName; \ No newline at end of file diff --git a/part6-productlines.sql b/part6-productlines.sql new file mode 100644 index 0000000..4f4e46d --- /dev/null +++ b/part6-productlines.sql @@ -0,0 +1,4 @@ +SELECT productName, productLine, productScale, productVendor +FROM products +WHERE productLine = 'Classic Cars' or productLine = 'Vintage Cars' +ORDER BY productLine DESC, productName ASC;