select sum(case when Users_Post_Counter.Count = 0 then 1 ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Japanese Language

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

select sum(case when Users_Post_Counter.Count = 0 then 1 else 0 end)
from (
select (
select count(*)
from Posts
where Posts.OwnerUserId = Users.Id
) as Count
from Users
) as Users_Post_Counter;

Enter Parameters

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