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.
Kampjun tal-output mistenni
Dan hu kif tidher tweġiba korretta — l-għadd tar-ringieli huwa tiegħu stess, m'għandux għalfejn jaqbel mat-tabelli tal-iskema.
| user_id | first_purchase |
|---|---|
| 1 | 2024-01-05 |
| 3 | 2024-01-05 |
| 5 | 2024-01-07 |
Idħol biex tara l-istorja tas-sottomissjonijiet
IdħolIdħol biex tuża l-Mentor tal-AI
Idħol