We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a42c933 commit 09729ebCopy full SHA for 09729eb
SQL/SQL-50/Confirmation_Rate.sql
@@ -0,0 +1,9 @@
1
+select s.user_id,
2
+CASE
3
+ WHEN c.time_stamp is null THEN 0.0
4
+ ELSE round(avg(c.action = "confirmed"), 2)
5
+END as confirmation_rate
6
+from Signups s
7
+left join Confirmations c
8
+on s.user_id = c.user_id
9
+group by s.user_id;
0 commit comments