What tags I vote on the most?

1

Please login or register to vote for this query.

(click on this box to dismiss)

What tags you like to vote on.

LEGO® Answers Meta

Q&A for LEGO® and building block enthusiasts

-- What tags I vote on the most?

DECLARE @UserId int = ##UserId##

SELECT TagName, count(*) c
FROM Votes
    INNER JOIN Posts ON Votes.PostId = Posts.Id
    INNER JOIN PostTags ON Posts.Id = PostTags.PostId
    INNER JOIN Tags ON PostTags.TagId = Tags.id
WHERE Votes.UserId = @UserId
GROUP BY TagName
ORDER BY c DESC

Enter Parameters

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