with TBL_REGISTER as ( select 'a1b1' as code, '등록1' as name from dual union all select 'a2b2', '등록2' from dual ), tbl_code1 as ( select 'a1' as code, '진행1' as name from dual union all select 'a2', '진행2' from dual ), tbl_code2 as ( select 'b1' as code, 'name1' as name from dual union all select 'b2', 'name2' from dual ) select r.code, r.name from tbl_code1 c1 inner join tbl_register r on (r.code like c1.code || '%') where c1.name = '진행1'