Downvotes on Reopened Questions


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for people studying math at any level and professionals in related fields

SELECT p.PostId,DATEDIFF(day,q.CreationDate,p.CreationDate)
FROM PostHistory p
left join PostHistory q
on p.PostId = q.postId
WHERE p.PostHistoryTypeId = 11
AND q.PostHistoryTypeId = 10
AND DATEDIFF(day, p.CreationDate, GETDATE() ) < 30
ORDER BY DATEDIFF(day,q.CreationDate,p.CreationDate)

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results