User's First Purchase
CRM is building the first purchase date for each buyer. In a_events, use events where kind = 'purchase', find the earliest date from ts for each user_id, and return user_id and first_purchase, sorted by user_id.
Δείγμα αναμενόμενης εξόδου
Έτσι μοιάζει μια σωστή απάντηση — το πλήθος γραμμών της είναι δικό της, δεν χρειάζεται να ταιριάζει με τους πίνακες του σχήματος.
| user_id | first_purchase |
|---|---|
| 1 | 2024-01-05 |
| 3 | 2024-01-05 |
| 5 | 2024-01-07 |
Συνδεθείτε για να δείτε το ιστορικό υποβολών
ΣύνδεσηΣυνδεθείτε για να χρησιμοποιήσετε τον AI Mentor
Σύνδεση