Downvotes on Reopened Questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics

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

SELECT v.PostId
FROM PostHistory p
left join PostHistory q
on p.PostId = q.postId
left join Votes v
on p.PostId = v.postId
WHERE p.PostHistoryTypeId = 11
AND DATEDIFF(day, p.CreationDate, GETDATE() ) <= 14
AND DATEDIFF(minute,q.CreationDate,p.CreationDate) >= 0
AND DATEDIFF(minute,v.CreationDate,q.CreationDate) >= 0
AND q.PostHistoryTypeId = 5
AND v.VoteTypeId = 3

Enter Parameters

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