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)

Writing

Q&A for the craft of professional writing, including fiction, non-fiction, technical, scholarly, and commercial writing

-- 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 meta site
loading Hold tight while we fetch your results