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.
Vzorec pričakovanega izhoda
Tako izgleda pravilen odgovor — ima svoje število vrstic in se ni treba ujemati s tabelami sheme.
| days | user_id |
|---|---|
| 4 | 1 |
| 3 | 3 |
| 4 | 5 |
Prijavite se za ogled zgodovine oddaj
PrijavaPrijavite se za uporabo mentorja UI
Prijava