Question statistics


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT COUNT(*) AS 'Questions',
  COUNT(*) - COUNT(AcceptedAnswerId) AS 'Without accepted answer',
  COUNT(*) - SUM(SIGN(AnswerCount)) AS 'Unanswered'
  FROM Posts
  WHERE OwnerUserId = ##UserId:int##
    AND PostTypeId = 1 -- Questions
  GROUP BY OwnerUserId

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results