How can I do this.... selcet coalesce((select 'y' from foo where name = f.name),'n') from foo f where...
So the query returns a "y" or "n" depending on whether or not the subquery is null. I get... "ERROR: failed to find conversion function from unknown to text"