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

0

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

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