Skip to content
Open
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
32 changes: 32 additions & 0 deletions Samuel_Uganiza.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
USE classicmodels;

SELECT productName, productLine, buyPrice
FROM products
ORDER BY buyPrice DESC

SELECT contactFirstName, contactLastName, city
FROM customers
WHERE country = 'Germany'
ORDER BY contactLastName

SELECT UNIQUE status
FROM orders
ORDER BY STATUS

SELECT *
FROM payments
WHERE paymentDate >= '2005-01-01'
ORDER BY paymentDate

SELECT lastName, firstName, email, jobTitle
FROM employees e
INNER JOIN offices o
ON e.officeCode = o.officeCode
WHERE city = 'San Francisco'

SELECT productName, productLine, productScale, productVendor, productDescription
FROM products
WHERE productLine = 'Vintage Cars' OR productLine = 'Classic Cars'
ORDER BY productLine DESC, SUBSTRING(productName, 6)