Questions that can be marked as answered by upvoting one of the available zero-score answers.
Q&A for enthusiasts and scholars of mythology and folklore
-- 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] FROM Posts a WHERE a.PostTypeId = 2 AND a.Score = @MinAScore AND a.OwnerUserId=@UserId AND EXISTS (SELECT q.Id FROM Posts q WHERE q.Id = a.ParentId AND q.AcceptedAnswerId IS NULL) ORDER BY a.Id ASC