题解 | #分析客户逾期情况#

分析客户逾期情况

https://www.nowcoder.com/practice/22633632da344e2492973ecf555e10c9

sum(if(overdue_days is not null,1,0)) 筛选逾期人数
concat(X...,'%')用于链接X...与%
select 
pay_ability,
concat(round(sum(if(overdue_days is not null,1,0))/count(customer_id)*100,1),'%') as overdue_ratio
from loan_tb
join customer_tb using(customer_id)
group by 1
order by 2 desc

全部评论

相关推荐

点赞 评论 收藏
分享
评论
4
收藏
分享
牛客网
牛客企业服务