Prøv dette:
SELECT id,
reason
CASE
WHEN reason = 'NoAnswer' THEN NoAnswer
WHEN reason = 'NetworkBusy' THEN NetworkBusy
END AS value
FROM table1
Det burde give dig et output som dette:
+----+------------+----------+
| id | reason | value |
+----+------------+----------+
| 1 | NoAnswer | 2 |
+----+------------+----------+