How many comments are hidden


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

with hidden_comments as(
     select case 
              when count(*) < 5 then 0
              else Count(*) - 5
            end as hidden
     from comments
     group by PostId

select sum(hidden) from hidden_comments;

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results