0
A
回答
4
SELECT id, song_id, COUNT(1) AS total
FROM votes
WHERE created BETWEEN [user_defined_start_date] AND [user_defined_end_date]
GROUP BY song_id
ORDER BY total DESC
LIMIT 10;
0
您究竟如何存储投票? 将下面[]中的单词替换为所需的变量。
select song_id
from [table]
where created > to_date('[the date you want]', '[the format you want]') and created < to_date('[the date you want]', '[the format you want]')
order by [votes]
limit 10;
相关问题
- 1. MySQL查询建议
- 2. MySQL查询效率建议
- 3. 建议优化MySQL查询
- 4. MySQL查询建议请求
- 5. MySQL查询:建议所需
- 6. MySql查询优化建议
- 7. 建议一个MySQL查询
- 8. Mysql查询建议的Mysql 5.5
- 9. 建议更好的MySQL查询
- 10. MySQL查询建议 - 列与联合
- 11. 算法或需要MySQL查询建议
- 12. 需要一个mysql查询建议
- 13. Mysql查询建议/需要帮助
- 14. MySQL查询建议与访问ID
- 15. MySQL的高级查询建议
- 16. 建议优化的mysql查询
- 17. Postgresql查询建议
- 18. 建议SQLite查询
- 19. 建议LINQ查询
- 20. SQL查询优化建议
- 21. SQL查询建议椅
- 22. SQL查询 - 需要建议
- 23. RavenDB查询建议多字
- 24. 登录建议查询
- 25. SQL查询加入建议
- 26. SQL查询建议请
- 27. mysql - 创建一个“建议艺术家关注”查询
- 28. 创建MySQL查询
- 29. MySQL查询创建
- 30. MySQL查询构建