SELECT YEAR(CreationDate) AS years, MONTH(CreationDate) A...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

SELECT
YEAR(CreationDate) AS years, MONTH(CreationDate) AS months, COUNT(*) AS total_posts
FROM Posts
GROUP BY YEAR(CreationDate), MONTH(CreationDate)
ORDER BY YEAR(CreationDate), MONTH(CreationDate);

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results