diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..149c0df Binary files /dev/null and b/.DS_Store differ diff --git a/SQL SCRIPTS/.DS_Store b/SQL SCRIPTS/.DS_Store new file mode 100644 index 0000000..83571ce Binary files /dev/null and b/SQL SCRIPTS/.DS_Store differ diff --git a/SQL SCRIPTS/Part1.sql b/SQL SCRIPTS/Part1.sql new file mode 100644 index 0000000..232c9e1 --- /dev/null +++ b/SQL SCRIPTS/Part1.sql @@ -0,0 +1,2 @@ +select productName as Name, productLine as Product_Line, buyPrice as Buy_Price from classicmodels.products order by buyPrice desc; + diff --git a/SQL SCRIPTS/Part2.sql b/SQL SCRIPTS/Part2.sql new file mode 100644 index 0000000..73a7b02 --- /dev/null +++ b/SQL SCRIPTS/Part2.sql @@ -0,0 +1,2 @@ +select contactFirstName First_Name, contactLastName Last_Name, city City from classicmodels.customers where country = "Germany" order by 2 ASC; + diff --git a/SQL SCRIPTS/Part3.sql b/SQL SCRIPTS/Part3.sql new file mode 100644 index 0000000..86a9c45 --- /dev/null +++ b/SQL SCRIPTS/Part3.sql @@ -0,0 +1 @@ +Select distinct status from classicmodels.orders order by 1 asc; diff --git a/SQL SCRIPTS/Part4.sql b/SQL SCRIPTS/Part4.sql new file mode 100644 index 0000000..ad8432b --- /dev/null +++ b/SQL SCRIPTS/Part4.sql @@ -0,0 +1,4 @@ +Select * from classicmodels.payments where paymentDate>='2005-01-01' order by 3 asc; + + + diff --git a/SQL SCRIPTS/Part5.sql b/SQL SCRIPTS/Part5.sql new file mode 100644 index 0000000..ff00acf --- /dev/null +++ b/SQL SCRIPTS/Part5.sql @@ -0,0 +1,8 @@ +Select Employees.lastname, Employees.firstname, Employees.email, Employees.jobTitle, Offices.city +from classicmodels.employees Employees left join +classicmodels.offices Offices +ON employees.officeCode = offices.officeCode +where city <> "San Francisco"; + + + diff --git a/SQL SCRIPTS/Part6.sql b/SQL SCRIPTS/Part6.sql new file mode 100644 index 0000000..1a2c659 --- /dev/null +++ b/SQL SCRIPTS/Part6.sql @@ -0,0 +1,7 @@ +Select productLine Product_Line, + productName Name , + productScale Scale, + productVendor Vendor from classicmodels.products + where productLine = "Classic Cars" || productLine = "Vintage Cars" order by 1 desc, 2 asc + +