I'm looking for a query that can take multiple fields from multiple tables and merge them into one field. Ex. I have a query that looks like:
select to_char(a.comments), to_char(b.comments), to_char(c.comments)
from crm.custprob a
left join crm.custcall b on b.servno = a.servno
left join crm.custlog c on c.servno = b.servno
where a.servno = 1716942
and produces the output:
a.comments b.comments c.comments 1 Regular 3 Primary 5 Log 1 Regular 3 Primary 4 Log 1 Regular 2 Other 5 Log 1 Regular 2 Other 4 Log
What I would like is a query that would produce the output all in one line, and in one field (I don't care about the order of the numbers) so it would look like:
Comments 1 Regular 2 Other 3 Primary 4 Log 5 Log