Tagged Zombie TimeSeries

13

Please login or register to vote for this query.

(click on this box to dismiss)

Portuguese Language

Q&A for linguists, teachers and learners wanting to discuss the finer points of the Portuguese language

declare @epoch as date = DateAdd(week, -1 - ##Weeks:int?52##, CURRENT_TIMESTAMP)
;

create table #toptags (
    TagId int not null,
    ZombieCount int not null)
;

insert into #toptags (TagId, ZombieCount)
select Top (##TopTags:int?15##) *
from (
    select pt.TagId as TagId,
           count (*) as ZombieCount
    from PostTags pt, Posts p
    where p.AnswerCount = 0
      and p.Id = pt.PostId
      and p.PostTypeId = 1
      and p.CommunityOwnedDate is null
      and p.ClosedDate is null
    group by pt.TagId
) as tags
order by ZombieCount Desc

Select * from #toptags

Enter Parameters

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