日期:2014-05-16 浏览次数:20466 次
1、select nvl(a.p_id,d.f_id)||','||nvl(b.c_id,d.f_id) ||','||nvl(c.h_id,d.f_id)||','||d.f_id from t_property a, t_car b, t_human c, t_claim d where a.f_id(+)=d.f_ID and b.Cf_ID(+)=d.f_ID and c.f_ID(+)=d.f_ID and d.report_id='9050003202011001094';
2、 select a.p_id from t_property a,t_claim d where a.f_id=d.f_ID and d.report_id='9050003202011001094' union select b.c_id from t_car b,t_claim d where b.f_id=d.f_ID and report_id='9050003202011001094' union select c.h_id from t_human c,t_claim d where c.f_id=d.f_ID and d.report_id='9050003202011001094' union select f_id from t_claim d where d.report_id='9050003202011001094';