Advertisement
This is comment for paste
Подзапросы в WHERE, задача 5
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- нужно было использовать оператор MAX:
- SELECT billing_city
- FROM invoice
- WHERE total >
- (SELECT MAX(total)
- FROM invoice
- WHERE EXTRACT(YEAR FROM CAST(invoice_date AS DATE)) = 2009)
- GROUP BY billing_city;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement