|
Hi,
I need to bring back a row of results, all the fields are straight forward returns, however one field needs to be dynamic, I need to check the field, if something is there, return the value, however if nothing is there, to display a different value
Something like this
select field1
, field2
, (IF field3 IS NOT NULL field3 else 'No value') AS TheResult
from Tbl1
Anytime I try it always errors saying error with IF.
Any ideas how to do this?
Ad
|