homework 1
commit ee01bd306bd94c1f9d3dcc04a9bd1c786b82e7d5
1 changed files with 6 additions and 0 deletions
homework-1.sql ADDED
View File
| @@ -0,0 +1,6 @@ | ||
| 1 | +-- Homework 1 | |
| 2 | +-- 1. Customers from Lisbon | |
| 3 | +SELECT name FROM customers WHERE city = 'Lisbon'; | |
| 4 | + | |
| 5 | +-- 2. Products under 30, cheapest first | |
| 6 | +SELECT name, price FROM products WHERE price < 30 ORDER BY price; | |