Purchases per user
Product analytics over the a_events table (event type in kind: visit, cart, purchase). Count the purchases per user. Return user_id and purchases, ordered by user_id. Exclude users with no purchases.
Exempel på förväntad utdata
Så här ser ett korrekt svar ut — radantalet är dess eget, det behöver inte matcha schematabellerna.
| user_id | purchases |
|---|---|
| 1 | 2 |
| 3 | 1 |
| 5 | 1 |
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga in