Edits qualifying for Archaeologist badge progress

8

Please login or register to vote for this query.

(click on this box to dismiss)

Open Source

Q&A for people organizing, marketing or licensing open source development projects

SELECT DISTINCT p.Id AS [Post ID], p.Id AS [Post Link], ph.CreationDate AS [Revision Date] 
FROM Posts p INNER JOIN PostHistory ph ON p.Id = ph.PostId
WHERE (
  ph.PostHistoryTypeId IN (4,5) AND
  ph.UserID = ##UserID## AND
  DATEADD(MONTH, -6, ph.CreationDate) > ALL (
    SELECT pph.CreationDate FROM PostHistory pph WHERE (
      ph.PostID = pph.PostID AND
      ph.CreationDate > pph.CreationDate
    )
  )
)
ORDER BY ph.CreationDate DESC

Enter Parameters

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