SELECT distinct p.Id AS [Post Link], p.CreationDate FROM ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Monero Meta

Q&A about the site for developers and users of the secure, private and untraceable cryptocurrency Monero

SELECT distinct p.Id AS [Post Link], p.CreationDate
  FROM ReviewTasks AS rt
  INNER JOIN Posts AS p ON rt.PostId = p.Id
  WHERE rt.ReviewTaskTypeId = 2 -- Close Votes
    AND p.PostTypeId = 1 
    AND p.AcceptedAnswerId is null
    AND p.ClosedDate is null 
    AND p.Score < 2
    AND p.CreationDate < DATEADD(dd, -7, GETDATE()) 
    AND (p.AnswerCount = 0 OR (SELECT max(a.Score) FROM Posts AS a WHERE a.ParentId = p.Id) < 2)
  ORDER BY p.CreationDate DESC

Enter Parameters

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