|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
要求将科目组合拆成段值和名称,下面是我的SQL,怎么样的SQL写运行比较快啊
select glcc.code_combination_id,glcc.segment1,glcc.segment2,glcc.segment3,glcc.segment4,glcc.segment5,
comp.description comp_desc,acct.description acct_desc,dept.description dept_desc,item.description item_desc,resv.description resv_desc
from gl_code_combinations glcc,
(SELECT flex_value,description FROM fnd_flex_values_vl ffv where flex_value_set_id=1005958) comp,
(SELECT flex_value,description FROM fnd_flex_values_vl ffv where flex_value_set_id=1005959) acct,
(SELECT flex_value,description FROM fnd_flex_values_vl ffv where flex_value_set_id=1005960) dept,
(SELECT flex_value,description FROM fnd_flex_values_vl ffv where flex_value_set_id=1005961) item,
(SELECT flex_value,description FROM fnd_flex_values_vl ffv where flex_value_set_id=1005962) resv
where glcc.segment1=comp.flex_value and glcc.segment2=acct.flex_value and glcc.segment3=dept.flex_value and
glcc.segment4=item.flex_value and glcc.segment5=resv.flex_value |
|