Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added SQL SCRIPTS/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions SQL SCRIPTS/Part1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
select productName as Name, productLine as Product_Line, buyPrice as Buy_Price from classicmodels.products order by buyPrice desc;

2 changes: 2 additions & 0 deletions SQL SCRIPTS/Part2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
select contactFirstName First_Name, contactLastName Last_Name, city City from classicmodels.customers where country = "Germany" order by 2 ASC;

1 change: 1 addition & 0 deletions SQL SCRIPTS/Part3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Select distinct status from classicmodels.orders order by 1 asc;
4 changes: 4 additions & 0 deletions SQL SCRIPTS/Part4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Select * from classicmodels.payments where paymentDate>='2005-01-01' order by 3 asc;



8 changes: 8 additions & 0 deletions SQL SCRIPTS/Part5.sql
Original file line number Diff line number Diff line change
@@ -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";



7 changes: 7 additions & 0 deletions SQL SCRIPTS/Part6.sql
Original file line number Diff line number Diff line change
@@ -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