How would you handle a coding task that is about JS array operations when the prompt is brief?
For this SQL version, state the assumptions needed to make the operation testable, then return the transformed values for active tasks whose operation is double_positive: keep positive values, double them, preserve position order, and ignore NULL values.
double_positive task, with task_id, task_name, and transformed_values.task_id ascending.| Column | Type | Description |
|---|---|---|
| task_idPK | INT | Identifier for the array operation task |
| task_name | VARCHAR(100) | Human-readable task name |
| operation | VARCHAR(50) | Requested array operation |
| is_active | BOOLEAN | Whether the task is active |
| Column | Type | Description |
|---|---|---|
| element_idPK | INT | Identifier for an array element |
| task_id | INT | Task containing the element |
| position | INT | Original zero-based element position |
| value | INT | Numeric array element |