Skip to content

Commit b71ef7b

Browse files
committed
백제완: [SQL] Confirmation Rate_241018
1 parent 93db6f8 commit b71ef7b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
SELECT
2+
A.user_id
3+
, ROUND(AVG(IF(B.action = 'confirmed', 1, 0)), 2) confirmation_rate
4+
FROM
5+
Signups A
6+
LEFT JOIN Confirmations B
7+
ON A.user_id = B.user_id
8+
GROUP BY
9+
A.user_id

0 commit comments

Comments
 (0)