users that have neither a question or answer

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

SELECT
count(*) no_questions_or_answers
FROM  
    users u
    LEFT JOIN posts p on
      u.id  = p.owneruserid
      and p.posttypeid in (1,2)
WHERE
     p.owneruserid is null

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached