Created, closed, reopened, answered, accepted - over the years

1

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 TOP 100
  Q.Id AS [Post Link],
  Q.CreationDate AS Created,
  C.CreationDate AS Closed,
  R.CreationDate AS Reopened,
  A.CreationDate AS Answered,
  Votes.CreationDate AS Accepted
FROM Posts Q, PostHistory C, PostHistory R, Posts A, Votes
WHERE
  C.PostId = R.PostId
  AND
  C.PostHistoryTypeId = 10
  AND
  R.PostHistoryTypeId = 11
  AND
  Q.Id = C.PostId
  AND
  A.Id = Q.AcceptedAnswerId
  AND
  Votes.VoteTypeId = 1
  AND
  Votes.PostId = A.Id
  AND
  Q.CreationDate < C.CreationDate
  AND
  C.CreationDate < R.CreationDate
  AND
  R.CreationDate < A.CreationDate
  AND
  A.CreationDate < Votes.CreationDate
ORDER BY
  LOG(DATEDIFF(s, Q.CreationDate, C.CreationDate))
  +
  LOG(DATEDIFF(s, C.CreationDate, R.CreationDate))
  +
  LOG(DATEDIFF(s, R.CreationDate, A.CreationDate))
  +
  LOG(DATEDIFF(s, A.CreationDate, Votes.CreationDate))
DESC

Enter Parameters

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