Reputation for the last twelve (12) months - edits approved by others - total sum

1

Please login or register to vote for this query.

(click on this box to dismiss)

3D Printing Meta

Q&A about the site for 3D printing enthusiasts

-- UserId:User Id

WITH e AS (
SELECT 
CASE  
    WHEN ApprovalDate > DATEADD(year, -1, GetDate()) THEN 2
    Else 0
END AS Points
FROM SuggestedEdits
WHERE OwnerUserId = ##UserId##
)
SELECT SUM(Points) AS EditsApprovedByOthersTotalSum
FROM e
WHERE 1=1

Enter Parameters

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