SELECT * FROM (SELECT TOP 10 * FROM TAGS ORDER BY Count ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Android Enthusiasts Meta

Q&A about the site for enthusiasts and power users of the Android operating system

SELECT *
FROM

(SELECT TOP 10 *
FROM TAGS
ORDER BY Count DESC) AS TopTags

LEFT JOIN

(SELECT PostTags.TagId, Posts.OwnerUserId, COUNT(*) AS TagCount
FROM (
    Posts
    LEFT JOIN
    PostTags ON Posts.Id = PostTags.PostId
    )
GROUP BY Posts.OwnerUserId, PostTags.TagId) AS TagCounts

ON TopTags.Id = TagCounts.TagId

--ORDER BY 


--ORDER BY Reputation

Enter Parameters

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