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

Ask Ubuntu

Q&A for Ubuntu users and developers

-- 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 sites:
loading Hold tight while we fetch your results