select format(CreationDate,'yyyy') as creation_year, form...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Joomla Meta

Q&A about the site for Joomla! administrators, users, developers and designers

select format(CreationDate,'yyyy') as creation_year,
format(CreationDate,'MM') as creation_month,
count(*) cnt, PostTypeId
from Posts
group by format(CreationDate,'yyyy'), format(CreationDate,'MM'), PostTypeId
having PostTypeId=1
order by cnt desc;

Enter Parameters

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