Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 303 Bytes

File metadata and controls

12 lines (9 loc) · 303 Bytes

문제보기

🔎문제 풀이 MySQL

SELECT S.user_id, 
    COALESCE(ROUND(SUM(C.action='confirmed')/COUNT(S.user_id), 2),0) AS 'confirmation_rate'
FROM Signups S LEFT JOIN Confirmations C ON S.user_id = C.user_id
GROUP BY S.user_id