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!
…but I agree with @Marc Gravell that this kind of formatting should be done in the ‘front end’.