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
4 changes: 4 additions & 0 deletions mysql_workFiles/part1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT productName as "Name ",
productLine as "Product Line",
buyPrice as "Buy Price"
FROM products ORDER BY buyPrice DESC;
7 changes: 7 additions & 0 deletions mysql_workFiles/part2.sql
Original file line number Diff line number Diff line change
@@ -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;
3 changes: 3 additions & 0 deletions mysql_workFiles/part3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT distinct status
FROM orders
ORDER BY status ASC ;
4 changes: 4 additions & 0 deletions mysql_workFiles/part4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT *
from payments
WHERE paymentDate> '01/01/2005'
ORDER by paymentDate ASC;
5 changes: 5 additions & 0 deletions mysql_workFiles/part5.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SELECT
lastName,firstName,email,jobTitle
from employees
WHERE officeCode=1
ORDER By lastName;
5 changes: 5 additions & 0 deletions mysql_workFiles/part6.sql
Original file line number Diff line number Diff line change
@@ -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;