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 Part1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT customers.customerName, employees.lastName, employees.firstName
FROM customers
INNER JOIN employees ON customers.salesRepEmployeeNumber=employees.employeeNumber
ORDER BY customerName ASC;
3 changes: 3 additions & 0 deletions Part2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT productName AS 'Product Name',(quantityOrdered * priceEach) AS 'Total sale', quantityOrdered as 'Total # Ordered'
FROM products JOIN orderdetails ON products.productcode=orderdetails.productcode
ORDER BY (quantityOrdered * priceEach) DESC;