Most popular tags in a year

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans Meta

Q&A about the site for music historians, critics, and fans

select
    count(Posts.Id) tag_count,
    Tags.TagName,
    Tags.Id
from
    Tags
    join PostTags on Tags.Id = PostTags.PostId
    join Posts on PostTags.TagId = Posts.Id
where
    year(Posts.CreationDate) = 2018
    and Posts.ParentId is null
    and Posts.DeletionDate is null
    and Tags.Id = 16
group by
    Tags.TagName,
    Tags.Id
order by
    tag_count desc

Enter Parameters

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