题解 | 推荐内容准确的用户平均评分

select
    avg(distinct score) avg_score
from
    (
        select
    user_id, hobby_l, score,
    if(rec_info_l = hobby_l,1,0) 判断
from recommend_tb rt join user_action_tb uat on rt.rec_user = uat.user_id
    ) a
where 判断 = 1

全部评论

相关推荐

喵_coding:年底缺人是短视频营造出来的 而且一般说的也很宽泛 不是特指后端
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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