Q&A for power users of Apple hardware and software
Select TOP(##num?100##) RANK() OVER(ORDER BY u.Reputation DESC) AS Rank, p.OwnerUserId as [User Link], u.Reputation, SUM(Case When pf.VoteTypeId = 2 Then 1 Else NULL End) AS UpFeedback, SUM(Case When pf.VoteTypeId = 3 Then 1 Else NULL End) AS DownFeedback, SUM(Case pf.VoteTypeId When 2 Then 1 WHEN 3 Then -1 End) AS Score, SUM(p.Score) AS [Total Score], SUM(Case When p.CommunityOwnedDate IS NULL Then p.Score ELSE 0 END) AS [nonCW Score] FROM PostFeedback pf JOIN Posts p ON p.Id = pf.PostId INNER JOIN Users u ON u.Id=p.OwnerUserId GROUP BY p.OwnerUserId, u.Reputation ORDER BY u.Reputation DESC