Zero-score uncommented answers overall

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow на русском

Вопросы и ответы для программистов

select 
   sum(case when a.Score=0 and a.CommentCount is null then 1 else 0 end) as [Unappreciated Answers], 
   count(a.Id) as [Total Answers], 
   100*cast(sum(case when a.Score=0 and a.CommentCount is null then 1 else 0 end) as float)/count(a.Id)  as [Percentage Unappreciated]
FROM Posts a
WHERE a.PostTypeId=2

Enter Parameters

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