Advertisement
Alaricy

Расш. возм. SQL. Урок 6. Операторы и функции для работы с датами 4/4

Jan 13th, 2022
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.14 KB | None | 0 0
  1. SELECT
  2.     DATE_TRUNC('day', DATE) AS date_month,
  3.     COUNT(id_product) AS cnt
  4. FROM
  5. transactions
  6. GROUP BY
  7.  date_month
  8. ORDER BY date_month
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement