Q&A about the site for amateur radio enthusiasts
DECLARE @UserId int = 285587 SELECT count(*) FROM Votes INNER JOIN Posts ON Posts.Id = Votes.PostId WHERE Posts.OwnerUserId = @UserId AND VoteTypeId = 4