select apbb.bank_name,apbb.bank_branch_name,apbb.bank_branch_id, apba.bank_account_id, apba.bank_account_name,apba.bank_account_num, apba.

attribute2 from ap_bank_branches apbb, ap_bank_accounts_all apba where --apbb.bank_name = 'Deutsche Bank' and apba.bank_account_id =187803 and apbb.bank_branch_id = apba.bank_branch_id -- and apba.bank_account_num = '200787002'

select apis.bank_Account_id,apba.attribute2 -- into v_db_UNB_Sender_ID from ap_bank_branches apbb, ap_bank_accounts_all apba, ap_inv_selection_criteria_all apis where --apba.bank_account_id =68580 and apis.checkrun_name = 'DE1-99111009EDIFACT' and apis.bank_account_id = apba.bank_account_id and apbb.bank_branch_id = apba.bank_branch_id -- and apba.bank_account_num = '200787002'; exec dbms_application_info.set_client_info(922); select * from org_organization_definitions SELECT a.attribute_category,b.bank_branch_name,b.bank_name,c.checkrun_name,a.att ribute2, a.bank_account_num,count(*) FROM AP_BANK_ACCOUNTS_ALL a, AP_BANK_BRANCHES b, ap_inv_selection_criteria_all c where 1=1 and b.bank_branch_id = a.bank_branch_id and a.bank_account_id = c.bank_account_id and a.account_type='INTERNAL' and a.attribute_category is not null and b.bank_name='Deutsche Bank Munchen' group by a.attribute_category, b.bank_branch_name, b.bank_name, c.checkrun_nam e, a.attribute2, a.bank_account_num

02/09/11 working query =========================== update ap_bank_accounts_all set attribute1 = 'N' , attribute8= 'N' -- , last_updated_by=v_user_id , last_update_date = sysdate where attribute2 = '884745540' and attribute_category = 'Deutsche Bank' and bank_account_id in( select distinct aisca.bank_account_id--,abaa.attribute2

attribute8. abaa.checkrun_id and fcr.attribute2.1000) select distinct aisca. ap_bank_accounts_all abaa where fcr.concurrent_program_id = 53440 -. ap_inv_selection_criteria_all aisca. last_updated_by=v_user_id .LAST_UPDATE_DATE from fnd_concurrent_requests fcr. attribute8 = 'N' --. fnd_concurrent_programs_tl fcpt.and abaa. ap_inv_selection_criteria_all aisca.argument1 = aisca.checkrun_id fcr. abaa.from fnd_concurrent_requests fcr.inactive_date is null and abaa.inactive_date is null and abaa.inactive_date.concurrent_program_id and fcr.bank_account_id = abaa.bank_account_id.user_concurrent_program_name.checkrun_id and fcr.concurrent_program_id = fcpt. fcpt.1000) where and and and and and and update ap_bank_accounts_all set attribute1 = 'N' . abaa.bank_account_id and fcr. fnd_concurrent_programs_tl fcpt. ap_bank_accounts_all abaa fcr.inactive_date is null abaa.abaa.argument1 = aisca.bank_account_id <> 677522 aisca.bank_account_id <> 677522 --excludes audible account .argument1 = aisca. last_update_date = sysdate where attribute2 = '884745560' and attribute_category = 'Deutsche Bank' and bank_account_id in( select distinct aisca. abaa.attribute1. abaa.request_date > sysdate . ap_inv_selection_criteria_all aisca. ap_bank_accounts_all abaa where fcr.bank_account_id fcr.attribute_category.request_date > sysdate . fnd_concurrent_programs_tl fcpt.bank_account_id from fnd_concurrent_requests fcr.bank_account_id <> 677522 --excludes audible account and aisca.concurrent_program_id = 53440 and abaa.bank_account_id = abaa.concurrent_program_id = 53440 abaa.concurrent_program_id = fcpt.concurrent_program_id fcr.

request_date > sysdate .bank_account_id and fcr.concurrent_program_id = fcpt.bank_account_id.and aisca. attribute2 from ap_bank_accounts_all where attribute2 is not null and attribute_category = 'Deutsche Bank' .bank_account_id = abaa.concurrent_program_id --and fcr.1000 desc ap_bank_accounts_all select last_updated_by.

Sign up to vote on this title
UsefulNot useful