User's unanswered question count...

1

Please login or register to vote for this query.

(click on this box to dismiss)

This query returns count of unanswered questions of a certain user. The OtherUserID parameter is the ID of a user whose unanswered question count you want to get.

Stack Overflow

Q&A for programmers

DECLARE @OtherUserID INT = ##OtherUserID:int##

SELECT 
    COUNT(*) AS [Unanswered Count]
FROM
    Posts
WHERE
    OwnerUserId = @OtherUserID AND
    PostTypeId = 1 AND
    AcceptedAnswerId IS NULL

Enter Parameters

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