SELECT DISTINCT OwnerUserId FROM Posts WHERE PostTypeId =...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Gardening and Landscaping

Q&A for gardeners and landscapers

-- Users who asked questions
SELECT DISTINCT OwnerUserId
FROM Posts
WHERE PostTypeId = 1  -- 1 indicates a Question
AND OwnerUserId IS NOT NULL
EXCEPT
-- Users who answered questions
SELECT DISTINCT OwnerUserId
FROM Posts
WHERE PostTypeId = 2  -- 2 indicates an Answer
AND OwnerUserId IS NOT NULL;

Enter Parameters

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