The relation between tables and view in oracle financial [message #516222] |
Fri, 15 July 2011 10:11 |
raul33
Messages: 26 Registered: October 2008 Location: jordan
|
Junior Member |
|
|
Dears
I am work in oracle e business r12
and i need to build report as xml
when run my select its need big time to view data i have a huge of data so i need to clear the relation of this tables if there is miss and if there another technique in select statement
this is my select statement
select
j_hdr.je_header_id je_header_id,
hdr.VENDOR_NAME supplier,
SEGMENT1||'-'||SEGMENT2||'-'||SEGMENT3||'-'||SEGMENT4||'-'||SEGMENT5||'-'||SEGMENT6||'-'||SEGMENT7||'-'||SEGMENT8||'-'||SEGMENT9 Account_number,
hdr.gl_date gl_date,
j_hdr.CURRENCY_CODE CURRENCY_CODE,
inv_lin.DESCRIPTION DESCRIPTION,
j_lin.ENTERED_DR ENTERED_DR,
j_lin.ENTERED_CR ENTERED_CR,
j_lin.ACCOUNTED_DR ACCOUNTED_DR,
j_lin.ACCOUNTED_CR ACCOUNTED_CR,
j_hdr.JE_SOURCE JE_SOURCE,
j_hdr.DEFAULT_EFFECTIVE_DATE Transaction_DATE,
hdr.INVOICE_NUM INVOICE_NUM,
QUICK_PO_NUMBER PO_NUMBER,
null ASSET_CATEGORY_ID,
hdr.VENDOR_ID VENDOR_ID
from gl_je_headers j_hdr,gl_je_lines_v j_lin,ap_invoice_distributions dist,ap_invoices_v hdr,ap_invoice_lines_v inv_lin
where code_combination_id = DIST_CODE_COMBINATION_ID
and hdr.invoice_id = inv_lin.INVOICE_ID
and dist.invoice_id = inv_lin.INVOICE_ID
and j_hdr.JE_HEADER_ID = j_lin.JE_HEADER_ID
and j_hdr.status = 'P'
and nvl(:P_SOURCE,'Payables') = 'Payables'
and je_source = 'Payables'
and j_lin.CODE_COMBINATION_ID between ( select CODE_COMBINATION_ID
from gl_code_combinations_kfv
where CONCATENATED_SEGMENTS = :P_FROM_COMBINATION_CODE)
and ( select CODE_COMBINATION_ID
from gl_code_combinations_kfv
where CONCATENATED_SEGMENTS = :P_TO_COMBINATION_CODE)
AND TRUNC(dEFAULT_EFFECTIVE_DATE) BETWEEN NVL(:P_FROM_DATE, DEFAULT_EFFECTIVE_DATE) AND NVL(:P_to_DATE, DEFAULT_EFFECTIVE_DATE)
Thanks in advance
|
|
|
|
|
|