Hi all of that I'm using a connection by prior clause

Hi all

In my connect by prior clause, I have a request. I want to pass the values to the query of my outer query. Is this possible in Oracle.Can all help me in this. Also paste my request for your reference

SELECT rct2.trx_number

rctl2.customer_trx_line_id

fifs.flex_value_set_id

gcc.code_combination_id

ffvc.child_flex_value

ffvc.parent_flex_value

gcc.segment4

ffvc.description

ffvc.lvl

OF ra_customer_trx_all rct2

ra_customer_trx_lines_all rctl2

ra_cust_trx_line_gl_dist_all rctlgd

gl_code_combinations gcc

(SELECT ffvv.flex_value_set_id

ffvv.flex_value child_flex_value

, LEVEL lvl, ffvv.parent_flex_value

ffvv.description

OF fnd_flex_value_children_v ffvv

WHERE 1 = 1

START WITH ffvv.flex_value = (SELECT

GCC.segment4

OF ra_customer_trx_all rct1,.

ra_customer_trx_lines_all rctl1,

ra_cust_trx_line_gl_dist_all rctlgd,

gl_code_combinations gcc

WHERE rct1.customer_trx_id = rctl1.customer_trx_id

AND rctl1.customer_trx_line_id = rctlgd.customer_trx_line_id

AND rct1.customer_trx_id = rctlgd.customer_trx_id

AND rctlgd.account_class = 'REV '.

AND rctlgd.code_combination_id = gcc.code_combination_id

AND rct1.trx_number =: trx_number - want to move here from the rct2.trx_number that comes from the outer query

AND rctla.customer_trx_line_id =: trx_line_id)-to move rctl2.customer_trx_line_id here which comes from the outer query

Ffvv.parent_flex_value CONNECT BY PRIOR = ffvv.flex_value) ffvc

s fnd_flex_value_sets

fnd_id_flex_segments FIFS

gl_ledgers l

WHERE rct2.customer_trx_id = rctl2.customer_trx_id

AND rctl2.customer_trx_line_id = rctlgd.customer_trx_line_id

AND rct2.customer_trx_id = rctlgd.customer_trx_id

AND rctlgd.code_combination_id = gcc.code_combination_id

AND fifs.flex_value_set_id = ffvc.flex_value_set_id

AND fifs.application_id = 101

AND fifs.flex_value_set_id = s.flex_value_set_id

AND fifs.application_column_name = 'SEGMENT4. '

AND fifs.id_flex_code = ' GL #

AND l.chart_of_accounts_id = fifs.id_flex_num

AND l.ledger_id = rct2.set_of_books_id

AND rctlgd.account_class = 'REV '.

AND rctl2.customer_trx_line_id =: trx_line_id - spend Trx id

AND rct2.trx_number =: trx_number - number of trx Pass

Hi all

I have used a workaround to achieve this.

I created a function and added the query above to function and the values passed as parameters in two places

Thank you

Tags: Database

Similar Questions

Maybe you are looking for

  • I can't move original items out of the "shared" folder

    I made a new account on my macbook pro OS X 10.9.5 so the first thing I did was moved all my files in the shared folder. then after I had them in there I've moved them back, thinking that he would make a copy in the shared folder. In fact, he did the

  • entrance to mar Lev constant

    I try to use mar lev in order to adjust the data to an equation.  The equation has two settings that I am trying to solve for, but it also has a constant variable that I won't mar lev to use in optimization.  How can I use the value of this constant

  • blue screen at startup problem

    I I have a toshiba satellite m35-s320 keep on getting this blue screen that appears after the icon widows when starting it comes to fast for me to read what is on it has done what everybody asked me to and reset to factory settings but it custom to f

  • Remote Desktop connection: How can I remove this program?

    How can I remove Remote Desktop Connection program?  I don't want to install a new version.  I just want to remove the program completely so cannot remote access another calculation and nobody can't computer mine of remote access for security reasons

  • CP1215 printer disheveled after update

    I installed an HP printer update yesterday via Windows Update and now my CP1215 print garbage.  I checked the log of update and update information are below. I searched for a way to uninstall the update, but it does not appear in the list of installe