I have a table which has 2 column, Type and Age, but I want to display in 5 column due to it’s condition like this example:
| TYPE | Age < 10 | 10<=Age<20 | Age > 20 |
How can I achieve this since it has only 2 column?
I’ve try selecting same table with different alias, but it was not good, long in execution time.
Any help would be greatly appreciated.
try this:
Use CASE statement