Top tags for a given week.

0

Please login or register to vote for this query.

(click on this box to dismiss)

Movies and TV Meta

Q&A about the site for movie and tv enthusiasts

SELECT top 100
t.TagName,
Year(p.CreationDate) yr,
DatePart(week, p.CreationDate) week,
Count(p.id) k
FROM
 posts p
 INNER JOIN postTags pt
 ON p.id = pt.PostId
 INNER JOIN tags t
 ON pt.tagId = t.id
GROUP BY
  t.TagName,
  Year(p.CreationDate) ,
  DatePart(week, p.CreationDate) 
ORder by 
count(p.id) desc

Enter Parameters

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