题解 | 分析客户逾期情况

分析客户逾期情况

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

select t1.pay_ability
,concat(truncate(sum(case when coalesce(overdue_days,0)>0 then 1 else 0 end)/count(*)*100,1),'%') as overdue_ratio
from loan_tb t
join customer_tb t1 on t.customer_id=t1.customer_id
group by t1.pay_ability
order by overdue_ratio desc



















全部评论

相关推荐

面了100年面试不知...:被割穿了才想起来捞人了
投递哔哩哔哩等公司10个岗位
点赞 评论 收藏
分享
算法冲刺中:kpi面加一,面完完全没动静,感谢信都没有
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务