top5relatedtags

0

Please login or register to vote for this query.

(click on this box to dismiss)

Beer, Wine and Spirits Meta

Q&A about the site for alcoholic beverage aficionados and those interested in beer, wine, or spirits

SELECT TOP 5
   t1.TagName AS [Tag Link], t2.TagName AS [Tag Link], COUNT(pt1.PostId) AS [Post Count]
FROM PostTags pt1 
   JOIN PostTags pt2 ON pt1.PostId = pt2.PostId
   JOIN Tags t1 ON t1.Id = pt1.TagId
   JOIN Tags t2 ON t2.Id = pt2.TagId
WHERE t1.TagName < t2.TagName AND
    t1.TagName LIKE '%hibernate%'
GROUP BY t1.TagName, t2.TagName
ORDER BY COUNT(pt1.PostId) DESC

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results