MySql:显示每个部分中添加的产品的平均值,每月的每日情况
我想显示每个部分(类别)中添加的产品的平均值,每个月每天都如此,你能帮我吗?
部分为汽车、别墅及普通
----------------------------------------------- Date Cars Villas General =============================================== 01-01-2011 20% 10% 70% ----------------------------------------------- 02-01-2011 31% 9% 60% ----------------------------------------------- . . . ----------------------------------------------- 31-01-2011 70% 19% 11% ===============================================
I want to show the average of products added in every section(category), daily wise for any month can you help me in that ?
Section are cars,villas and general
----------------------------------------------- Date Cars Villas General =============================================== 01-01-2011 20% 10% 70% ----------------------------------------------- 02-01-2011 31% 9% 60% ----------------------------------------------- . . . ----------------------------------------------- 31-01-2011 70% 19% 11% ===============================================
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
转到 mysql 文档 并查找
GROUP_BY
和 <代码>AVG功能。 :)Go to the mysql docs and look up the
GROUP_BY
andAVG
functions. :)