select posts.id as [Post Link], count(*) from votes join...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Show users who marked a as "favorites", and which posts they marked for all questions of a certain user

Stack Overflow

Q&A for professional and enthusiast programmers

-- Who Favorited My Question?
-- Show users who marked a as "favorites", and which posts they marked...
select  posts.id as [Post Link], count(*) 
from votes
  join posts on posts.id = votes.postid 
where
  votetypeid=2 and
  posts.OwnerUserId = ##UserId##
group by posts.id

Enter Parameters

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