SELECT ifnull(test_kbn,0) kbn FROM test_table WHERE 1
+————————–+
| kbn |
+————————–+
| 0 |
| 1000 |
| 2 |
| 0 |
| 800 |
+————————–+