select SUM(case when c = 0 then 1 else 0 end) AS cnt from (

0

Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

select SUM(case when c = 0 then 1 else 0 end) AS cnt
    from (
        SELECT Posts.OwnerUserId, count(*) AS c
        from Posts
        where Posts.PostTypeId=1
        group by Posts.OwnerUserId
   ) t

Enter Parameters

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