题解 | 请写出计算粉丝ctr的sql语句
请写出计算粉丝ctr的sql语句
https://www.nowcoder.com/practice/853a6567cf524f63bab0879b8d0bfe62
SELECT
ROUND((SUM(read_num)/SUM(show_num)), 4) AS fans_ctr
FROM a JOIN b
ON a.author_id = b.author_id JOIN c
ON b.content_id = c.content_id AND a.fans_id = c.fans_id
查看11道真题和解析