Advertisement
korenizla

тема 2 урок 11 задача 2

Jan 11th, 2023
553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT customer_id,
  2.        invoice_date,
  3.        total,
  4.        DATE_TRUNC('year', CAST(invoice_date AS timestamp)),
  5.        EXTRACT(WEEK FROM CAST(invoice_date AS timestamp))
  6. FROM invoice
  7. WHERE customer_id BETWEEN 20 AND 50;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement