第二题答案 select b.month "月份", b.mon_amount "当月销售金额", sum(b.mon_amount)over(partition by b.year order by b.month) "累计销售金额"from(select a.month,a.year,sum(a.amount) as mon_amountfrom(select id,user_id,paid_time,substr(paid_time,1,7) as month,substr(paid_time,1,4) as year,amountfrom order_record order by paid_time) agroup by a.month,a.yearorder by a.month) b
点赞 1

相关推荐

故事和酒66:小米现在校招很多都是在高校搞小米训练营,然后直接挑人,大四就去实习,所以实际上校招总名额是变少了的。同学211本无经验经过两周培训直接签了
秋招,不懂就问
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务