Views per action (downvoted questions)


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select sum(cast(ViewCount as bigint))/sum(abs(isnull(Score,0))) 'vote ratio',
       sum(cast(ViewCount as bigint))/sum(abs(isnull(CommentCount,0))) 'comment ratio',
       sum(cast(ViewCount as bigint))/sum(abs(isnull(AnswerCount,0))) 'answer ratio',
       sum(cast(ViewCount as bigint))/sum(abs(isnull(FavoriteCount,0))) 'favorite ratio'
from Posts 
where ViewCount is not null
      and PostTypeId = 1
      and isnull(Score, 0) < 0

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results