Highest score from posts immune to reputation loss after deletion

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

SELECT TOP(##num?100##)
  RANK() OVER(ORDER BY SUM(p.Score) DESC) AS Rank,
  p.OwnerUserId AS [User Link], p.OwnerDisplayName,
  SUM(p.Score) AS [Total Score]
FROM Posts p
WHERE DATEDIFF(day, p.CreationDate, CAST(GETDATE() AS Date))>=##days?60##
  AND (p.Score>=##minscore?3##)
GROUP BY p.OwnerUserId, p.OwnerDisplayName
ORDER BY SUM(p.Score) DESC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results