SELECT lse.lty_code,
cle.id,
cle.cle_id,
itm.object1_id1,
itm.jtot_object1_code
FROM apps.okc_k_lines_b cle,
apps.okc_line_styles_b lse,
apps.okc_k_items itm,
fa_additions ast
WHERE lse.id = cle.lse_id
AND itm.cle_id = cle.id
AND ast.asset_id = itm.object1_id1
AND cle.dnz_chr_id = (SELECT khr.id
FROM apps.okc_k_headers_all_b khr
WHERE khr.contract_number = 'CONTRACT_NUMBER')
AND itm.jtot_object1_code = 'OKX_ASSET';
cle.id,
cle.cle_id,
itm.object1_id1,
itm.jtot_object1_code
FROM apps.okc_k_lines_b cle,
apps.okc_line_styles_b lse,
apps.okc_k_items itm,
fa_additions ast
WHERE lse.id = cle.lse_id
AND itm.cle_id = cle.id
AND ast.asset_id = itm.object1_id1
AND cle.dnz_chr_id = (SELECT khr.id
FROM apps.okc_k_headers_all_b khr
WHERE khr.contract_number = 'CONTRACT_NUMBER')
AND itm.jtot_object1_code = 'OKX_ASSET';
No comments:
Post a Comment