select b.npa_site_planning_id,a.工單流水號,a.地市,a.行政區 from (select 工單流水號,地市,地市||行政區 as 行政區 from mtnoh.task_5 ) a left join (select npa_site_planning_id,MTNOH_MAIN_WO_SEQNO from npas.wr_map_npa_mtnoh group by npa_site_planning_id,MTNOH_MAIN_WO_SEQNO) b on a.工單流水號= b.MTNOH_MAIN_WO_SEQNO where b.npa_site_planning_id = 'PL_20150528_002385'