Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT customer_id,
- invoice_date,
- total,
- DATE_TRUNC('year', CAST(invoice_date AS timestamp)),
- EXTRACT(WEEK FROM CAST(invoice_date AS timestamp))
- FROM invoice
- WHERE customer_id BETWEEN 20 AND 50;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement