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)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

SELECT Count(*)
FROM Users u
   FULL JOIN Posts p ON p.owneruserid = u.id
   FULL JOIN PostTags pt ON pt.PostId = p.Id
   FULL 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