select
round(
ifnull(
(select count(*) from (select distinct requester_id, accepter_id from request_accepted) as A)
/
(select count(*) from (select distinct sender_id, send_to_id from friend_request) as B),
0)
, 2) as accept_rate;
LeetCode-SQL-597. 好友申请 I :总体通过率
猜你喜欢
转载自blog.csdn.net/m0_37302219/article/details/104986202
今日推荐
周排行