Webhook Retries in the Metric
Operations needs to know how many different orders received events in webhook_events. Retries for the same order_id must not inflate the metric. Fix the report so it returns one value, n, for the number of unique orders.
Buggy query
SELECT COUNT(*) AS n FROM webhook_events;
Exemplu de ieșire așteptată
Așa arată un răspuns corect — numărul său de rânduri îi este propriu, nu trebuie să se potrivească cu tabelele din schemă.
| n |
|---|
| 2 |
Conectează-te pentru a vedea istoricul soluțiilor trimise
Conectează-teConectează-te pentru a folosi Mentorul AI
Conectează-te