Describe a time you optimized a slow-running spreadsheet or data workflow.
Using the supplied workflow tables, write a SQL query that summarizes execution performance for active workflows and identifies workflows exceeding the duration target.
workflow_id, workflow_name, total_run_count, completed_run_count, avg_duration_seconds, failed_run_count, and performance_statusperformance_status to NO DATA, SLOW, or WITHIN TARGET; a slow workflow has an average completed-run duration above 300 secondsworkflow_id ascending| Column | Type | Description |
|---|---|---|
| workflow_idPK | INT | Unique workflow identifier |
| workflow_name | VARCHAR(150) | Name of the spreadsheet or data workflow |
| owner_team | VARCHAR(100) | Team responsible for the workflow |
| is_active | BOOLEAN | Whether the workflow is currently active |
| Column | Type | Description |
|---|---|---|
| run_idPK | INT | Unique workflow run identifier |
| workflow_id | INT | Workflow executed by the run |
| started_at | TIMESTAMP | Run start timestamp |
| status | VARCHAR(20) | Execution status |
| duration_seconds | INT | Run duration in seconds |