DECLARE @YearNum int = ##YearNum## select year(creationd...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Poker

Q&A for serious players and enthusiasts of poker

DECLARE @YearNum int = ##YearNum##

select year(creationdate)
  , PostTypeId
  , count(PostTypeId) type_count
from posts
where year(creationdate) = @YearNum
group by year(creationdate)
  , PostTypeId
order by count(PostTypeId)

Enter Parameters

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