Find the users who have marked my questions as favorites.
Q&A about the site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field
-- Fan Finder
-- Find the users who have marked my questions as favorites.
declare @UserId int = ##UserId##
select top 200 v.UserId as [User Link], count(*) as FavoriteCount
from Votes v
join Posts p on p.id = v.PostId
where p.OwnerUserId = @UserId
and v.VoteTypeId = 5
group by v.UserId
order by FavoriteCount desc