Total revenue per user
Total revenue per user
In sales(id, user_id, product, amount, ts) compute the total purchase amount for each user. Group rows by user_id and return columns user_id and total_amount (sum of amount). Order the result by user_id ascending.
Exemplo de resposta esperada
| user_id | total_amount |
|---|---|
| 10 | 425.00 |
| 20 | 1410.00 |
Entre para ver seu histórico de envios
EntrarEntre para usar o AI Mentor
EntrarFocus radio
Paused · SomaFM · Fluid