Skip to main content
added 124 characters in body
Source Link
Glorfindel Mod
  • 255.6k
  • 61
  • 638
  • 1.3k

You'reFirst of all, the join with PostTags causes posts to count multiple times, depending on how many tags they have.

Also, you're ordering by sum(score) desc - that's the total score of the posts. If you want to order by the # of posts, just order by count(*) desc, like this query.

enter image description hereenter image description here

You're ordering by sum(score) desc - that's the total score of the posts. If you want to order by the # of posts, just order by count(*) desc, like this query.

enter image description here

First of all, the join with PostTags causes posts to count multiple times, depending on how many tags they have.

Also, you're ordering by sum(score) desc - that's the total score of the posts. If you want to order by the # of posts, just order by count(*) desc, like this query.

enter image description here

Source Link
Glorfindel Mod
  • 255.6k
  • 61
  • 638
  • 1.3k

You're ordering by sum(score) desc - that's the total score of the posts. If you want to order by the # of posts, just order by count(*) desc, like this query.

enter image description here