select creation_date, count(*) as cnt, PostTypeId from ( ...

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 creation_date, count(*) as cnt, PostTypeId
from (
  select format(CreationDate, 'yyyy-MM') as creation_date, 
  Id, PostTypeId from Posts
) as date_and_id
group by creation_date, PostTypeId
order by cnt desc;

Enter Parameters

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