Q&A about the site for enthusiasts and scholars of mythology and folklore
declare @UserId int = ##UserId## SELECT SUM(CASE WHEN VoteTypeId = 2 THEN 1 else 0 end) Approvals, SUM(CASE WHEN VoteTypeId = 3 THEN 1 else 0 end) Rejections FROM SuggestedEditVotes WHERE UserId = @UserId