I’m trying to get a DOUBLE type value out of my database for use in a report. If this value is NULL, then the report should state "N/A".
I’m just having some difficulty with the sql to make this work:
SELECT CAST(IFNULL(billablerate, 'N/A'), CHAR(5)) AS billablerate FROM rates
Something tells me that these functions can’t be combined like this, but I don’t know how else to get them both in.
Any assistance would be great!
try this:
works for: