How to show a column, but if it has null show another sql such as a table named Task.
| id | nome | nome resumido | +-----+----------+----------------+ | 1 | nome 1 | 1 | | 2 | nome 2 | 2 | | 3 | nome 3 | null |
sql will get the short name, where it is null it takes the name for example:
| id | as nome | +-----+----------+ | 1 | 1 | | 2 | 2 | | 3 | nome 3 |
If you can not get into sql I'm using the language in php