# 查找最热门新帖子的正确查询

**URL:** <https://meta.discourse.org/t/correct-query-to-find-the-most-popular-new-posts/160043>\
**Category:** Data & reporting\
**Tags:** sql-query\
**Created:** [2020年八月6日 16:14 UTC](https://meta.discourse.org/t/correct-query-to-find-the-most-popular-new-posts/160043 "2020-08-06T16:14:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastianmoran](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sebastianmoran/32/166546_2.png) [@sebastianmoran](https://meta.discourse.org/u/sebastianmoran)\
**Post date:** [2020年八月6日 16:14 UTC](https://meta.discourse.org/t/correct-query-to-find-the-most-popular-new-posts/160043/1 "2020-08-06T16:14:28Z")

</div>

正在尝试找到正确的查询语句，以获取过去 7 天内最热门的新帖子，然后按回复数、浏览量和点赞数进行排序。

任何帮助都将不胜感激。

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2020年八月7日 04:37 UTC](https://meta.discourse.org/t/correct-query-to-find-the-most-popular-new-posts/160043/2 "2020-08-07T04:37:01Z")

</div>

为什么？直接使用现有的内置顶部 /top 导航即可。

---

<div class="post-metadata">

**Author:** ![sebastianmoran](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sebastianmoran/32/166546_2.png) [@sebastianmoran](https://meta.discourse.org/u/sebastianmoran)\
**Post date:** [2020年八月7日 13:13 UTC](https://meta.discourse.org/t/correct-query-to-find-the-most-popular-new-posts/160043/3 "2020-08-07T13:13:27Z")

</div>

这是为了能够每 7 天运行三份不同的报告。

---

<div class="post-metadata">

**Author:** ![sebastianmoran](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sebastianmoran/32/166546_2.png) [@sebastianmoran](https://meta.discourse.org/u/sebastianmoran)\
**Post date:** [2020年八月12日 20:14 UTC](https://meta.discourse.org/t/correct-query-to-find-the-most-popular-new-posts/160043/4 "2020-08-12T20:14:33Z")

</div>

这最终解决了问题。  
[https://meta.discourse.org/latest?order=likes?before:7](https://meta.discourse.org/latest?order=likes?before:7)  
[https://meta.discourse.org/latest?order=views?before:7](https://meta.discourse.org/latest?order=views?before:7)
