I have the following issue :
We have this query :
select price*hours as payment from table employees
Now, if the result of that multiplication it's 0, I'd like payment to be "x", not 0.
Translated in nonsql this would mean :
(price*hours) != 0 ? (price*hours) : "x"
Any ideas how could i implement this sql command ?
Thanks!
x ?? y
(null-coalescing) is a different operator tox ? y : z
(conditional)