diff --git a/mysql_workFiles/part1.sql b/mysql_workFiles/part1.sql new file mode 100644 index 0000000..bd0a651 --- /dev/null +++ b/mysql_workFiles/part1.sql @@ -0,0 +1,4 @@ +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/mysql_workFiles/part2.sql b/mysql_workFiles/part2.sql new file mode 100644 index 0000000..e6d0a68 --- /dev/null +++ b/mysql_workFiles/part2.sql @@ -0,0 +1,7 @@ +SELECT +contactFirstName as "First Name", +contactLastName as "Last Name", +city as "City" +From customers +where country='germany' +ORDER BY contactLastName Asc; diff --git a/mysql_workFiles/part3.sql b/mysql_workFiles/part3.sql new file mode 100644 index 0000000..98492c7 --- /dev/null +++ b/mysql_workFiles/part3.sql @@ -0,0 +1,3 @@ +SELECT distinct status +FROM orders +ORDER BY status ASC ; diff --git a/mysql_workFiles/part4.sql b/mysql_workFiles/part4.sql new file mode 100644 index 0000000..61f6b7a --- /dev/null +++ b/mysql_workFiles/part4.sql @@ -0,0 +1,4 @@ +SELECT * +from payments +WHERE paymentDate> '01/01/2005' +ORDER by paymentDate ASC; \ No newline at end of file diff --git a/mysql_workFiles/part5.sql b/mysql_workFiles/part5.sql new file mode 100644 index 0000000..d84037f --- /dev/null +++ b/mysql_workFiles/part5.sql @@ -0,0 +1,5 @@ +SELECT +lastName,firstName,email,jobTitle +from employees +WHERE officeCode=1 +ORDER By lastName; \ No newline at end of file diff --git a/mysql_workFiles/part6.sql b/mysql_workFiles/part6.sql new file mode 100644 index 0000000..5ec66f3 --- /dev/null +++ b/mysql_workFiles/part6.sql @@ -0,0 +1,5 @@ +SELECT +productName, productLine, productScale,productVendor +from products +WHERE productLine = "Classic Cars" OR productLine="Vintage Cars" +ORDER By productLine DESC , productName ASC; \ No newline at end of file