DBA Data[Home] [Help]

APPS.OEP_CMERGE_OENTS SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 14

    select note_id
    from so_note_addition_rules
    where  entity_value in (select m.duplicate_site_id
                                    from   ra_customer_merges  m
                                    where  m.process_flag = 'N'
			            and    m.request_id = req_id
			            and    m.set_number = set_num)
    and entity_id = 1009
    for update nowait;
Line: 25

    select note_id
    from so_note_addition_rules
    where  entity_value in (select m.duplicate_site_id
                                    from   ra_customer_merges  m
                                    where  m.process_flag = 'N'
			            and    m.request_id = req_id
			            and    m.set_number = set_num)
    and entity_id = 1008
    for update nowait;
Line: 36

    select note_id
    from so_note_addition_rules
    where  entity_value in (select m.duplicate_site_id
                                    from   ra_customer_merges  m
                                    where  m.process_flag = 'N'
			            and    m.request_id = req_id
			            and    m.set_number = set_num)
    and entity_id = 1007
    for update nowait;
Line: 47

    select note_id
    from so_note_addition_rules
    where  entity_value in (select m.duplicate_id
                                 from   ra_customer_merges  m
                                 where  m.process_flag = 'N'
			         and    m.request_id = req_id
			         and    m.set_number = set_num)
    and entity_id = 1000
    for update nowait;
Line: 86

/* site level update */
  arp_message.set_name( 'AR', 'AR_UPDATING_TABLE');
Line: 90

    UPDATE SO_NOTE_ADDITION_RULES  a
    set (entity_value) = (select distinct m.customer_site_id
                                   from   ra_customer_merges m
                                   where  a.entity_value =
                                                 m.duplicate_site_id
			           and    m.request_id = req_id
                                   and    m.process_flag = 'N'
			           and    m.set_number = set_num),
           last_update_date = sysdate,
           last_updated_by = arp_standard.profile.user_id,
           last_update_login = arp_standard.profile.last_update_login
    where  entity_value in (select m.duplicate_site_id
                                    from   ra_customer_merges  m
                                    where  m.process_flag = 'N'
			            and    m.request_id = req_id
			            and    m.set_number = set_num)
    and entity_id = 1009;
Line: 110

  arp_message.set_name( 'AR', 'AR_ROWS_UPDATED' );
Line: 114

/* site level update */
  arp_message.set_name( 'AR', 'AR_UPDATING_TABLE');
Line: 118

    UPDATE SO_NOTE_ADDITION_RULES  a
    set (entity_value) = (select distinct m.customer_site_id
                                   from   ra_customer_merges m
                                   where  a.entity_value =
                                                 m.duplicate_site_id
			           and    m.request_id = req_id
                                   and    m.process_flag = 'N'
			           and    m.set_number = set_num),
           last_update_date = sysdate,
           last_updated_by = arp_standard.profile.user_id,
           last_update_login = arp_standard.profile.last_update_login
    where  entity_value in (select m.duplicate_site_id
                                    from   ra_customer_merges  m
                                    where  m.process_flag = 'N'
			            and    m.request_id = req_id
			            and    m.set_number = set_num)
    and entity_id = 1008;
Line: 138

  arp_message.set_name( 'AR', 'AR_ROWS_UPDATED' );
Line: 142

/* site level update */
  arp_message.set_name( 'AR', 'AR_UPDATING_TABLE');
Line: 146

    UPDATE SO_NOTE_ADDITION_RULES  a
    set (entity_value) = (select distinct m.customer_site_id
                                   from   ra_customer_merges m
                                   where  a.entity_value =
                                                 m.duplicate_site_id
			           and    m.request_id = req_id
                                   and    m.process_flag = 'N'
			           and    m.set_number = set_num),
           last_update_date = sysdate,
           last_updated_by = arp_standard.profile.user_id,
           last_update_login = arp_standard.profile.last_update_login
    where  entity_value in (select m.duplicate_site_id
                                    from   ra_customer_merges  m
                                    where  m.process_flag = 'N'
			            and    m.request_id = req_id
			            and    m.set_number = set_num)
    and entity_id = 1003;
Line: 166

  arp_message.set_name( 'AR', 'AR_ROWS_UPDATED' );
Line: 170

/* customer level update */
  arp_message.set_name( 'AR', 'AR_UPDATING_TABLE');
Line: 174

    UPDATE SO_NOTE_ADDITION_RULES  a
    set    entity_value = (select distinct m.customer_id
                                from   ra_customer_merges m
                                where  a.entity_value =
				 		m.duplicate_id
                                and    m.process_flag = 'N'
			        and    m.request_id = req_id
			        and    m.set_number = set_num),
           last_update_date = sysdate,
           last_updated_by = arp_standard.profile.user_id,
           last_update_login = arp_standard.profile.last_update_login
    where  entity_value in (select m.duplicate_id
                                 from   ra_customer_merges  m
                                 where  m.process_flag = 'N'
			         and    m.request_id = req_id
			         and    m.set_number = set_num)
    and entity_id = 1000;
Line: 194

  arp_message.set_name( 'AR', 'AR_ROWS_UPDATED' );