Find questions with close votes

0

Please login or register to vote for this query.

(click on this box to dismiss)

Reverse Engineering Meta

Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation

SELECT
  p.Id, count(*) as [occurrences]
FROM
    Posts p
  INNER JOIN
    Votes v
  ON
    p.Id = v.PostId
WHERE
  p.PostTypeId = 1
AND
  p.ClosedDate IS NULL
AND
  v.VoteTypeId = 6
GROUP BY
  p.Id
HAVING
  count(*) >= 1
ORDER BY occurrences DESC

Enter Parameters

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