declare @dumpdate as datetime = (select max(CreationDate)...


Please login or register to vote for this query.

(click on this box to dismiss)

Super User

Q&A for computer enthusiasts and power users

declare @dumpdate as datetime = (select max(CreationDate) from Posts);

select count(*) "Visible downvotes with no comments"
from Votes v
join Posts p on p.Id=v.PostId
where VoteTypeId=3
and v.CreationDate > @dumpdate-90
and CommentCount=0

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results