SELECT COUNT(*) FROM Users WHERE ( SELECT COUNT(*) FROM ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

-- Enter Query Title
-- Enter Query Description

SELECT COUNT(*) FROM Users
    WHERE
        (
            SELECT COUNT(*) FROM Posts
                WHERE Posts.OwnerUserId = Users.Id AND Posts.PostTypeId = 1
        ) > 0

Enter Parameters

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