diff --git a/Part1.sql b/Part1.sql new file mode 100644 index 0000000..efa6d1f --- /dev/null +++ b/Part1.sql @@ -0,0 +1,6 @@ +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.sql b/Part2.sql new file mode 100644 index 0000000..ac928da --- /dev/null +++ b/Part2.sql @@ -0,0 +1,10 @@ +SELECT + contactFirstName AS "First Name", + contactLastName AS "Last Name", + city AS "City" +FROM + customers +WHERE + Country='Germany'; +ORDER BY + contactLastName ASC; diff --git a/Part3.sql b/Part3.sql new file mode 100644 index 0000000..507f5b4 --- /dev/null +++ b/Part3.sql @@ -0,0 +1,6 @@ +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..a5e72a3 --- /dev/null +++ b/Part4.sql @@ -0,0 +1,7 @@ +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..7fe6231 --- /dev/null +++ b/Part5.sql @@ -0,0 +1,8 @@ +SELECT + lastName, firstName, email, jobTitle +FROM + employees +WHERE + officeCode = 1 +ORDER BY + lastName; \ No newline at end of file diff --git a/Part6.sql b/Part6.sql new file mode 100644 index 0000000..acd5488 --- /dev/null +++ b/Part6.sql @@ -0,0 +1,8 @@ +SELECT + productName, productLine, productScale, productVendor +FROM + products +WHERE + productLine = 'VintageCars' OR productLine = 'Classic Cars' +ORDER BY + productLine DESC, productName; \ No newline at end of file