SELECT format(CreationDate,'yyyy - MM') AS Time, PostType...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

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

SELECT format(CreationDate,'yyyy - MM') AS Time, PostTypeId,
count(*) AS 'Number of Post'
FROM posts
WHERE PostTypeId = '1'
GROUP BY format(CreationDate,'yyyy - MM'),PostTypeId
ORDER BY Time DESC

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results