Hi MeanGreen
The basic query, without the case, doesn't seem to work. Take the following table:
id, company, parent_id
Bill,Microsoft,<null>
Bob,<null>,Ben
Ben,Oracle,<null>
My query needs to produce the inherited company name:
Bill, Microsoft
Bob, Oracle
Ben, Oracle
The query
select...