I want to do a select, where if the query returns a blank result then it returns some set text, and otherwise it returns the result of the query...
select iff(isnull([table1.field]) or [table1.field]="","empty result",[table1.field]) from table1 left join table 2 on table1.field=table2.field where ID='someID';
I hope my question makes sense.
It seems to work if the result set has results, but if I get no results it refuses to return the "empty result" string.
Anybody know why?
Thanks!
