DECLARE @Tag NVARCHAR(35) = LOWER('python'); -- specify t...


Please login or register to vote for this query.

(click on this box to dismiss)

Korean Language

Q&A for linguists, teachers and students of the Korean language

DECLARE @Tag NVARCHAR(35) = LOWER('python'); -- specify the tag

SELECT TOP 10 Users.Id AS UserId, 
    COUNT(*) AS UnansweredQuestionsCount
FROM Users
    INNER JOIN Posts AS Questions ON Users.Id = Questions.OwnerUserId
    INNER JOIN PostTags ON Questions.Id = PostTags.PostId
    INNER JOIN Tags ON PostTags.TagId = Tags.Id
WHERE Tags.TagName = @Tag
    AND Questions.PostTypeId = 1 -- Questions only
    AND Questions.AcceptedAnswerId IS NULL -- Unanswered questions only
    AND Questions.CreationDate >= DATEADD(month, -6, GETDATE()) -- Within the last six months
GROUP BY Users.Id, Users.DisplayName
ORDER BY UnansweredQuestionsCount DESC

Enter Parameters

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