What is my average answer score?

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS

Q&A for administrators, end users, developers and designers for Craft CMS

-- 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