I have table with column data_of_birth. I want to create query where people between 0-10 will be A, and 11-18 will be B. Something like this :
+-------+-----+-------+
| name | age | class |
+-------+-----+-------+
| betty | 9 | A |
| carl | 12 | B |
+-------+-----+-------+
The problem is how to create last column with dynamic data ?
CASEexpression.