My favorite users

1

Please login or register to vote for this query.

(click on this box to dismiss)

Find the users who have marked my questions as favorites.

Stack Overflow

Q&A for professional and enthusiast programmers

-- Reverse Fan Finder
-- Find the users who I have marked their questions as favorites.

declare @UserId int = ##UserId##

select top 200 
  p.owneruserid as [User Link],
  count(*) as [Favorite Count]
--  p.id as [Post Link]
from votes v
join posts p on p.id = v.postid 
where v.userid = @userid
and v.votetypeid = 5
group by p.owneruserid
order by [Favorite Count] desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results