Questions by month per tag

3

Please login or register to vote for this query.

(click on this box to dismiss)

Question count for a particular tag

Economics

Q&A for those who study, teach, research and apply economics and econometrics

-- Questions by month per tag
-- Question count for a particular tag

select 
  datepart(year, p.CreationDate) Year,
  datepart(month, p.CreationDate) Month,
  count(*) as questions
from Posts p
join PostTags pt on pt.PostId = p.Id
join Tags t on t.Id = pt.TagId 
where t.TagName = ##Tag:string## and p.PostTypeId = 1
group by datepart(year, p.CreationDate), datepart(month, p.CreationDate)
order by datepart(year, p.CreationDate) desc, datepart(month, p.CreationDate) desc

Enter Parameters

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