Interview practice question
Day-7 retention
Data Engineering · SQL · Intermediate
Calculate day-7 retention: the share of users who came back exactly 7 days after signup.
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Get each user's signup date.
- Check for activity on signup date plus 7 days.
- Left join activity to keep all signed-up users in the denominator.
- Count returning users divided by total signups per signup date.
- Only include signup dates at least 7 days old.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.