What is my average answer score?

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

-- What is my average answer score?

DECLARE @UserId int = ##UserId##

SELECT 
    AVG(CAST(Score AS float)) AS AverageAnswerScore
FROM
    Posts
  INNER JOIN
    Users ON Users.Id = OwnerUserId
WHERE 
    OwnerUserId = @UserId
  AND
    PostTypeId = 2

Enter Parameters

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