Upvoted posts for UserId with certain tag


Please login or register to vote for this query.

(click on this box to dismiss)

Load all posts a certain user upvoted and filter by tag (tag1)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @UserId int = ##UserId##
Select p.Id, p.Title, p.Tags, t.TagName
  FROM Users u
   JOIN Votes v ON u.Id = v.UserId
   JOIN Posts p ON p.Id = v.PostId
   JOIN PostTags pt ON pt.PostId = p.Id
   JOIN Tags t  ON t.Id = pt.TagId
  where u.Id = 819887 
   AND t.TagName in 

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results