How much of a generalist am I?

1

Please login or register to vote for this query.

(click on this box to dismiss)

This query outputs the total non-wiki answer score, for any of the 40 most popular tags, for a given user.

Reverse Engineering Meta

Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation

-- How much of a generalist am I?
-- This query outputs the total non-wiki answer score, 
-- for any of the 40 most popular tags, for a given user.

set nocount on

declare @topTags table (id int, name nvarchar(35), count int)
insert @topTags
select top 40 Id, TagName, Count from Tags order by Count desc

set nocount off

select name as [TagName], sum(Posts.Score) as Score from @topTags
  inner join PostTags on PostTags.TagId = id
  inner join Posts on Posts.ParentId = PostTags.PostId
where Posts.OwnerUserId = ##UserId:int## 
  and Posts.CommunityOwnedDate is null
  and Posts.PostTypeId = 2
group by name order by Score desc

Enter Parameters

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