题解 | 请写出计算粉丝ctr的sql语句

请写出计算粉丝ctr的sql语句

https://www.nowcoder.com/practice/853a6567cf524f63bab0879b8d0bfe62

select 
    sum(read_num)/sum(show_num) as fans_ctr
from
    a join b on a.author_id = b.author_id
    join c on a.fans_id = c.fans_id and b.content_id = c.content_id;

全部评论

相关推荐

快刀斩offer:干测试,项目组就我一个测试,准备在职考研跑路了
点赞 评论 收藏
分享
评论
4
收藏
分享

创作者周榜

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