SELECT TOP 10 posts.Id, posts.Title, COUNT(posttags.tagid...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physics

Q&A for active researchers, academics and students of physics

SELECT TOP 10 posts.Id, posts.Title, COUNT(posttags.tagid) as  TagsCount
FROM posts
inner join posttags
on posts.Id = posttags.postid
AND Posts.PostTypeId=1
GROUP BY posts.id, posts.title
HAVING COUNT(posttags.tagid) >= 5
order by newid()

Enter Parameters

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