#1068

Orders by Status

The operations dashboard shows how many orders are in each status. Return status and cnt, one row per status, sorted by status.

Esempio di output atteso

Ecco come appare una risposta corretta — il suo numero di righe è a sé stante, non deve corrispondere alle tabelle dello schema.

cntstatus
1cancelled
3paid
3pending

Il risultato della tua query apparirà qui