search top posts by tag

1

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

DECLARE @tag0 nvarchar(25) = ##tag0:string?security##

SELECT top 10000
  p.id as [Post Link], p.acceptedanswerid, a.body
FROM Tags t
JOIN PostTags pt ON pt.TagId = t.Id 
JOIN Posts as p ON p.Id = pt.PostId
JOIN Posts as a ON p.AcceptedAnswerId = a.Id
WHERE TagName = @tag0
ORDER BY p.ViewCount DESC

Enter Parameters

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