Does a user have any flagged posts?


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

 p.Id as [Post Link],
  select count(v.Id) from Votes v
  where v.PostId = p.Id and (v.VoteTypeId = 4 or v.VoteTypeId = 12 or v.VoteTypeId = 13)
 ) as Flags
from Posts p
where p.OwnerUserId = ##UserId##

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results