题解 | 获取指定客户每月的消费额
select date_format(t_time,'%Y-%m')time, sum(t_amount)total from trade where t_cus= (select c_id from customer where c_name='Tom') and year(t_time)=2023 and t_type=1 group by date_format(t_time,'%Y-%m') order by time;
注意区分消费金额和转账。
select date_format(t_time,'%Y-%m')time, sum(t_amount)total from trade where t_cus= (select c_id from customer where c_name='Tom') and year(t_time)=2023 and t_type=1 group by date_format(t_time,'%Y-%m') order by time;
注意区分消费金额和转账。
相关推荐
_hengheng:22届的,个人的实践是社招最好也别超过2页,一页半左右比较好,有时候去线下终面简历还会被打印出来拿在手里,写太多不太合适,再就是面试顶多一个小时多点,也聊不了那么多内容,反而如何让一页半的简历看起来全是优点才是最重要的,哪一部分都能拿出来和面试官一起交流很久