Tags coming most likely with your tag together

1

Please login or register to vote for this query.

(click on this box to dismiss)

Anime and Manga Meta

Q&A about the site for anime and manga fans

SELECT TOP ##TopN:int?100##
  MIN(DTags.TagName) AS TagName,
  COUNT(*) AS Count
FROM Tags STags, PostTags S, PostTags D, Tags DTags
WHERE
  LOWER(STags.TagName) = LOWER(##TagName:string##)
  AND
  S.TagId = STags.Id
  AND
  S.PostId = D.PostId
  AND
  DTags.Id = D.TagId
  AND
  DTags.Id <> S.TagId
GROUP BY DTags.Id
ORDER BY Count DESC, DTags.Id

Enter Parameters

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