Thanks, SantaMufasa. I tried it but for some reason, it puts duplicates out there. Also, how do I join in another table. The query I have now is:
select anumber,
ltrim(substr(max(sys_connect_by_path(bu_code, ', ')), 2)) BU_CODE
from (select anumber,
bu_code...