Skip to content

Commit

Permalink
Time: 1639 ms (20.76%), Space: 0B (100.00%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantoniochacon committed Jun 4, 2024
1 parent 0057f98 commit 82107cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 1934-confirmation-rate/1934-confirmation-rate.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Write your MySQL query statement below
SELECT sig.user_id, ROUND(IFNULL((SELECT COUNT(user_id) FROM Confirmations conf WHERE sig.user_id = conf.user_id AND conf.action = 'confirmed') / (SELECT COUNT(user_id) FROM Confirmations conf WHERE sig.user_id = conf.user_id),0),2) AS confirmation_rate FROM Signups sig;

0 comments on commit 82107cb

Please sign in to comment.