Who Favorited Me?

5

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...

Internet of Things Meta

Q&A about the site for builders and users of networked sensors and control devices in the contexts of smart homes, industry automation, or environmental sensors

-- Who Favorited Me?
-- Show users who marked my posts as "favorites", and which posts they marked...

DECLARE @UserId int = ##UserId##

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

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results