DECLARE @UserId int = ##userId## SELECt COUNT(v.Id), vt...


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for Muslims, experts in Islam, and those interested in learning more about Islam

-- Enter Query Title
-- Enter Query Description

DECLARE @UserId int = ##userId##

SELECt COUNT(v.Id), vt.Name
FROM Votes v
JOIN VoteTypes vt ON vt.Id = v.VoteTypeId
JOIN Posts p ON p.Id = v.PostId
WHERE p.OwnerUserId = @UserId
AND vt.Name = 'UpMod'
GROUP BY vt.Id, vt.Name

Enter Parameters

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