Click here to see the full article post
I tried the query in Sqlite, it returns 0. Not how MySQL handle a integer divide by integer.
THERE IS NO NEED TO USE 5 SELECT ,
(SELECT COUNT(DISTINCT requester_id, accepter_id) FROM request_accepted) /
(SELECT COUNT(DISTINCT sender_id, send_to_id) FROM friend_request )
,0) ,2) AS accept_rate
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.