Questions by summed rep of the answerers

1

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

SELECT TOP 100
  QuestionId AS [Post Link],
  QuestionId,
  COUNT(*) AS AnswererNo,
  SUM(CAST(AnswererRep AS BIGINT)) AS SumAnswererRep
FROM (
  SELECT DISTINCT
    Q.Id AS QuestionId,
    Users.Id AS AnswererId,
    Users.Reputation AS AnswererRep
  FROM Posts Q, Posts A, Users
  WHERE
    A.ParentId = Q.Id
    AND
    Users.Id = A.OwnerUserId
    AND
    Q.ClosedDate IS NULL
) QA, Users
WHERE QA.AnswererId = Users.Id
GROUP BY QA.QuestionId
ORDER BY SumAnswererRep DESC, QuestionId

Enter Parameters

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