I have the following problem:
We have this request:
select price*hours as payment from table employees
Now, if the result of this multiplication is 0, I would like the payment to be "x" and not 0.
Translated to nonsql, this would mean:
(price*hours) != 0 ? (price*hours) : "x"
Any ideas how I can implement this sql command?
Thank!
source
share