DECLARE @UserId int = ##UserId:int##; SELECT COUNT(1) FRO...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @UserId int = ##UserId:int##;
SELECT COUNT(1) FROM votes v
JOIN posts p ON v.PostId = p.Id
WHERE v.VoteTypeId = 3
  AND p.OwnerUserId = @UserId

Enter Parameters

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