1.

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS

Q&A for administrators, end users, developers and designers for Craft CMS

SELECT YEAR(CreationDate) as Year, MONTH(CreationDate) as Month, PostTypeId, COUNT(*) as cnt
FROM Posts
GROUP BY PostTypeId, YEAR(CreationDate), MONTH(CreationDate)
ORDER BY COUNT(*) DESC;

Enter Parameters

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