Dropbox: Retention rate of January signups in February (SQL)
Problem. You have a users table with each user's join date and an engagement table that logs user activity. Find the percentage of users who joined in January 2021 and were also active at least once in February 2021.
Setting. One of four questions in a 70-minute intern assessment. A companion SQL question asked for new signups per country for each month of the first quarter of 2021.
Approach the candidate used. Filter users to January signups, left join to engagement rows dated in February, count distinct users who matched, and divide by the total January signups. Watch out for counting a user twice when they have several February events.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.