Select Year(CreationDate) as "year", Month(CreationDate) ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

Select 
Year(CreationDate) as "year", 
Month(CreationDate) as "month",
PostTypeId as "posttypeid",
Count(ID) as "cnt"
from Posts
Group by Year(CreationDate), Month(CreationDate), PostTypeId;

Enter Parameters

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