Select top ten tags

0

Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles Meta

Q&A about the site for people who build and repair bicycles, people who train cycling, or commute on bicycles

declare @userid int = ##userid##

select top 10 sum(p.score) as score, pt.tagid
from posts p
inner join posttags pt on pt.postid = p.parentid
where p.owneruserid = @userid
group by pt.tagid
order by score desc

Enter Parameters

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