Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Посчитайте среднюю стоимость заказов, оформленных в понедельник.
- SELECT AVG(total)
- FROM invoice
- WHERE CAST(invoice_date AS TIMESTAMP) = DATE_TRUNC('week', CAST(invoice_date AS TIMESTAMP));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement