Tag Scores

0

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 20 
  TagName,
  COUNT(*) AS Posts,
  SUM(Score) AS Score
FROM Posts
  INNER JOIN PostTags ON PostTags.PostId = Posts.ParentId
  INNER JOIN Tags ON PostTags.TagId = Tags.Id
  WHERE Posts.OwnerUserId = ##UserId:int## and Posts.CommunityOwnedDate is null
GROUP BY TagName
ORDER BY SUM(Score) DESC

Enter Parameters

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