Days to first purchase
For each user who purchased, compute how many days passed from the signup date (signup_date in a_users) to their FIRST purchase. Return user_id and the number of days days, ordered by user_id.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| days | user_id |
|---|---|
| 4 | 1 |
| 3 | 3 |
| 4 | 5 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in