select sum(case when question = 0 then 0 else 1 end) No_q...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Portuguese Language

Q&A for linguists, teachers and learners wanting to discuss the finer points of the Portuguese language

select sum(case when question = 0 then 0 else 1 end) No_questions
    from (
        select OwnerUserId, count(*) question 
           from posts 
           where PostTypeId=1 
           group by OwnerUserId
         ) tb

Enter Parameters

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