恰好看到,感觉SQL题第二题应该这样写:有的用户可能并不存在逾期的订单 select sum(repaid_amount)/count(distinct(user_id)) from table a where a.is_overdue=true; 不知道对不对
点赞 评论
牛客网
牛客企业服务