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)

Interpersonal Skills

Q&A for people looking to improve their interpersonal communication skills

DECLARE @UserId int = ##UserId##
Select 
   '<li><a href=http://stackoverflow.com/questions/'       
      + CAST(p.Id AS NVARCHAR(13)) + '>'+p.Title+'</a>'
  FROM Users u
  LEFT JOIN Votes v ON u.Id = v.UserId
  LEFT JOIN Posts p ON p.Id = v.PostId
  where u.Id = @UserId

Enter Parameters

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