Show users who marked my posts as "favorites", and which posts they marked...
Q&A for professional and enthusiast programmers
-- Who Favorited Me? -- Show users who marked my posts as "favorites", and which posts they marked... DECLARE @UserId int = 50476 select votes.userid as [User Link], posts.id as [Post Link] from votes join posts on posts.id = votes.postid where votetypeid=5 and posts.owneruserid=@UserID