Upvoted posts for UserId with certain tag

0

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)

Open Data

Q&A for developers and researchers interested in open data

SELECT Count(*)
FROM Users u
   JOIN Posts p ON p.owneruserid = u.id
   JOIN PostTags pt ON pt.PostId = p.Id
   JOIN Tags t  ON t.Id = pt.TagId
WHERE u.Id = ##UserId##
     AND t.TagName in 
     (
       ##Tag1:string##
     )

Enter Parameters

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