/* select count(id) from (select a.id from (select users....

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 * from posttypes;
/*
select count(id) from 
  (select a.id from
    (select users.id from users 
    join posts p on users.id = p.OwnerUserId and PostTypeId = 1
    group by users.id) a
    left outer join posts on a.id = posts.OwnerUserId and PostTypeId = 2
    where posts.id is not NULL
) b
*/
select count(a.id) from
    (select users.id from users 
    join posts p on users.id = p.OwnerUserId and PostTypeId = 1
    group by users.id) a
    left outer join posts on a.id = posts.OwnerUserId and PostTypeId = 2
    where posts.id is NULL
    
    /*
    select count (c) from
    (select count(*) c from users 
    join posts p on users.id = p.OwnerUserId and PostTypeId = 1
    group by users.id)sad

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results