What is my average answer score?

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

Q&A about the site 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
  AND
    Score <= 41

Enter Parameters

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