Negative questions with a single negative-but-accepted answer

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT
  q.Id AS [Post Link],
  q.Score AS 'Q Score',
  a.Score AS 'A Score'

FROM
  Posts q
    INNER JOIN Posts a
      ON a.ParentId = q.Id

WHERE
  q.PostTypeId = 1 AND
  a.PostTypeId = 2 AND
  q.Score < 0 AND
  a.Score < 0 AND
  q.AcceptedAnswerId IS NOT NULL AND
  q.AnswerCount = 1

ORDER BY
  q.CreationDate DESC

Enter Parameters

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