select top 100 as [User Link], sum(D.downvotes) as d...


Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

select top 100 as [User Link], sum(D.downvotes) as downvotes,
datediff(dd,C.CreationDate,getdate()) as age,
CAST(sum(D.downvotes)/datediff(dd,C.CreationDate,getdate()) as decimal) as ave
from Users as C inner join (
  select as postId, A.ownerUserId as userId, B.downvotes
  from Posts as A inner join (  
    select postId, count(*) as downvotes
    from Votes
    where voteTypeId = 3
    group by postId
  ) as B
  on = B.postId
) as D
on = D.userId
where C.Reputation != 1
group by,age,C.CreationDate
order by ave desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results