SELECT CONCAT(year(CreationDate), ' , ', month(CreationDa...

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 CONCAT(year(CreationDate), ' , ', month(CreationDate)) as 'year-month',
COUNT(CONCAT(year(CreationDate), ' , ', month(CreationDate))) as 'count'
FROM Posts
GROUP BY CONCAT(year(CreationDate), ' , ', month(CreationDate));

Enter Parameters

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