使用 SQL 查询返回每周创建的票证数量
我有一个票证表 common_ticket,其中有一列名为creation_date,用于保存创建日期。
我想计算过去几个月每周创建的票证数量。我在编写 SQL 查询来返回此类信息时遇到问题。如何返回并不重要,只要每个单独的周都有一个不同的数字即可。
有人对如何做到这一点有任何想法吗?
I have a table of tickets, common_ticket, with a column called creation_date, which holds the date of creation.
I want to count how many tickets were created each week for the past few months. I am having trouble writing a SQL query to return such information. How it is returned is not really important as long as there is a distinct number for each separate week.
Does anyone have any ideas on how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
像这样的东西:
Something like:
这应该可以做到:
this should do it: