C# top100 users

0

Please login or register to vote for this query.

(click on this box to dismiss)

Top 100 by votes users in tag c#

Open Source Meta

Q&A about the site for people organizing, marketing or licensing open source development projects

-- C# top100 users
-- Top 100 by votes users in tag c#

SELECT TOP 100
    u.Id,
    (select DisplayName from Users udn with (nolock) where udn.Id = u.Id)
    ,COUNT(*) AS UpVotes 
FROM Tags t with (nolock)
    INNER JOIN PostTags pt with (nolock)ON pt.TagId = t.id
    INNER JOIN Posts p with (nolock) ON p.ParentId = pt.PostId
    INNER JOIN Votes v with (nolock) ON v.PostId = p.Id and v.VoteTypeId = 2
    inner join Users u with (nolock) on u.Id = p.OwnerUserId
WHERE 
    p.CommunityOwnedDate IS NULL
     GROUP BY u.Id,t.Id
    having t.Id in ('9','17')
ORDER BY UpVotes DESC

Enter Parameters

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