homework 1
commit c23b7ead9429dacfc61bb7482f1256f1bfff5677
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; | |