題解 | #推薦內(nèi)容準(zhǔn)確的用戶平均評分#
推薦內(nèi)容準(zhǔn)確的用戶平均評分
http://fangfengwang8.cn/practice/2dcac73b647247f0aef0b261ed76b47e
select round(sum(max_score)/count(distinct rec_user),3) as avg_score from (select rec_user,hobby_l,max(score) as max_score from recommend_tb as rt join user_action_tb as uat on rec_user = user_id where hobby_l = rec_info_l group by 1 ) t1