#1094

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.

Przykładowy oczekiwany wynik

Tak wygląda poprawna odpowiedź — liczba jej wierszy jest swoista i nie musi odpowiadać tabelom ze schematu.

user_idfirst_purchase
12024-01-05
32024-01-05
52024-01-07

Wynik Twojego zapytania pojawi się tutaj