Top tags by views

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select top 50 t.TagName, sum(p.ViewCount) as Views, t.Count as Questions from Tags t, Posts p
inner join PostTags pt on pt.PostId = p.Id
where pt.TagId = t.Id
group by t.TagName, t.Count
order by sum(p.ViewCount) desc

Enter Parameters

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