MySQL
- 2 ответа
- 0 вопросов
2
Вклад в тег
SELECT
user_id,
COUNT(1) as count,
MONTH(FROM_UNIXTIME(created_at)) as month
FROM
my_table
GROUP BY
user_id,
MONTH(FROM_UNIXTIME(created_at))