热线电话:13121318867

登录
2023-07-18 阅读量: 434
Cda数据分析——Sql淘宝案例(二)

Cda数据分析——Sql淘宝案例中的个体商业数据指标查询

select * from userbehavior_new;
select user_id,max(amount) 最大金额,min(amount) 最小金额,count(*) 消费次数,sum(amount) 消费总额
from userbehavior_new
where behavior_type = 'buy'
group by user_id
order by sum(amount) desc;

image.png

0.0000
0
关注作者
收藏
评论(0)

发表评论

暂无数据