Unanswered questions in a tag by asker reputation

4

Please login or register to vote for this query.

(click on this box to dismiss)

Find unanswered questions in a tag by asker reputation

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

-- Find unanswered questions in a tag by asker reputation

SELECT Posts.Id as [Post Link], Posts.Score, Posts.Tags as [Tags],  Posts.CreationDate, Users.LastAccessDate
FROM  Posts
    INNER JOIN PostTags ON Posts.Id          = PostTags.PostId
    INNER JOIN Tags     ON PostTags.TagId    = Tags.id
    INNER JOIN Users    ON Posts.OwnerUserId = Users.id
WHERE Tags.TagName   = '##TagName##'
      AND Posts.AnswerCount = 0
      AND Posts.PostTypeId  = 1                -- PostTypeId = 1 -> Question
      AND Posts.CommunityOwnedDate is null
      AND Posts.ClosedDate         is null
      AND Users.Reputation > 10000
      AND Posts.CreationDate > '2014-01-01'
ORDER by Users.LastAccessDate      DESC;

Enter Parameters

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