Aggregate transactions by status and failure reasons (SQL) | Intuit