Find My Fans

0

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

-- Fan Finder
-- Find the users who have marked my questions as favorites.

declare @UserId int = 3094533 --##UserId##

select top 200 q.OwnerUserId as [User Link], count(*) as FavoriteCount
from Posts q 
join Posts p on p.ParentId = q.id
where p.OwnerUserId = @UserId
group by q.OwnerUserId
order by FavoriteCount desc

Enter Parameters

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