Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence
select count(case when posts > 0 then 1 end) from ( select u.id as id, count(p.id) as posts from users as u right join posts as p on p.OwnerUserId = u.id group by u.id ) q