Tagged Zombie TimeSeries


Please login or register to vote for this query.

(click on this box to dismiss)

Motor Vehicle Maintenance and Repair Meta

Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles

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

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

-- insert into #toptags (TagId, ZombieCount)
set rowcount ##TopTags:int?15##
insert into #toptags
    select ROW_NUMBER() over (order by count(*) desc) as Rank,
           pt.TagId as TagId,
           count (*) as ZombieCount
    --into #ttags
    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
    order by count(*) desc
set rowcount 0

Select * from #toptags

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results