Who Favorited Me?

0

Please login or register to vote for this query.

(click on this box to dismiss)

Show users who marked my posts as "favorites", and which posts they marked...

Stack Overflow

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 = ##UserId##

SELECT v.userid AS [User Link], t.Name, posts.id AS [Post Link]
FROM posts p, votetypes t, votes v join posts ON posts.id=v.postid
WHERE p.owneruserid=@UserID AND v.votetypeid=t.Id

Enter Parameters

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