Unanswered questions that have at least one zero-score answer

0

Please login or register to vote for this query.

(click on this box to dismiss)

Questions that can be marked as answered by upvoting one of the available zero-score answers.

Martial Arts Meta

Q&A about the site for students and teachers of all martial arts

-- Unanswered questions that have at least one zero-score answer
-- Questions that can be marked as answered by upvoting one of the available zero-score answers.
DECLARE @UserId int = ##UserId##
DECLARE @MinAScore int = ##MinAScore##
SELECT a.Id AS [Post Link], a.Score AS [Score], q.Id, h.PostHistoryTypeId
FROM Posts a, Posts q, PostHistory h
WHERE a.PostTypeId = 2
      AND a.Score = @MinAScore
      AND a.OwnerUserId=@UserId
      AND q.Id = a.ParentId
      AND q.AcceptedAnswerId IS NULL
      AND h.PostId = a.Id
      AND h.PostHistoryTypeId != 24
      AND EXISTS (SELECT u.Id
                  FROM Users u
                  WHERE u.Id = q.OwnerUserId
                  AND u.LastAccessDate >= '1/1/2012')
ORDER BY a.LastActivityDate ASC

Enter Parameters

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