HW 1 Big Data

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(PostTypeId) as cnt, PostTypeId
FROM Posts
WHERE PostTypeId = 1
GROUP BY Concat(year(CreationDate), ', ', month(CreationDate)), PostTypeId
ORDER BY cnt ASC;

Enter Parameters

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