Q&A for active researchers, academics and students of physics
-- Who Favorited Me?
-- Show users who marked my posts as "favorites", and which posts they marked...
DECLARE @UserId int = 573971
select votes.userid as [User Link], votes.userid, posts.id as [Post Link], posts.id As [PostId]
from votes join posts on posts.id = votes.postid
where votetypeid=5 and posts.owneruserid=@UserID