每个渠道销售情况统计sql
2016-03-15 18:29
246 查看
select a.member_id,a.share_channel,sum(a.share_PV),sum(a.share_point),count(b.my_share_id),sum(order_amount),sum(order_brokerage) from my_share a, my_share_order b
where a.my_share_id=b.my_share_id and a.member_id='JK_12345678'
group by share_channel;
where a.my_share_id=b.my_share_id and a.member_id='JK_12345678'
group by share_channel;
相关文章推荐
- 如何修改mysql5.6.24解压缩版(免安装版或zip版)字符编码
- 数据库添加图片路径异常
- oracle虚拟机安装
- SQL server 2012 1326错误
- php安装memcache扩展
- mysql编码设置
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- 连接SQLServer或Access数据库的字符串
- Mysql数据库备份和还原常用的命令
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法(1)
- mysql视图学习总结
- MySQL笔记之视图的使用详解
- mysql unrecognized service问题解决
- MYSQL不能从远程连接的解决方法
- ORACLE ADF:EO 自定义系统验证的错误信息
- Mac OS X 下 TAR.GZ 方式安装 MySQL5.6
- MySQL 启动报错File .mysql-bin.index not found (Errcode 13)
- sql server 对象资源管理器(一)
- 让Mac启动的时候自动启动mysql