DBA Data[Home] [Help]

APPS.PEFRUSDT SQL Statements

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

Line: 20

            select effective_date
            into   l_effective_date
            from   fnd_sessions
            where  session_id = userenv('sessionid');
Line: 33

          select legislation_code
          into   g_leg_code
          from   per_business_groups
          where  business_group_id = p_bus_group_id;
Line: 43

    select range_or_match
    into   l_range_or_match
    from   pay_user_tables
    where  upper(user_table_name) = upper(p_table_name)
    and    nvl (business_group_id,
                p_bus_group_id)   = p_bus_group_id;
Line: 52

        select  CINST.value
        into    l_value
        from    pay_user_column_instances_f        CINST
        ,       pay_user_columns                   C
        ,       pay_user_rows_f                    R
        ,       pay_user_tables                    TAB
        where   upper(TAB.user_table_name)       = upper(p_table_name)
        and     nvl (TAB.business_group_id,
                     p_bus_group_id)             = p_bus_group_id
        and     nvl (TAB.legislation_code,
                     g_leg_code)                 = g_leg_code
        and     C.user_table_id                  = TAB.user_table_id
        and     nvl (C.business_group_id,
                     p_bus_group_id)            = p_bus_group_id
        and     nvl (C.legislation_code,
                     g_leg_code)                 = g_leg_code
        and     upper (C.user_column_name)       = upper (p_col_name)
        and     CINST.user_column_id             = C.user_column_id
        and     R.user_table_id                  = TAB.user_table_id
        and     l_effective_date           between R.effective_start_date
        and     R.effective_end_date
        and     nvl (R.business_group_id,
                     p_bus_group_id)             = p_bus_group_id
        and     nvl (R.legislation_code,
                     g_leg_code)                 = g_leg_code
        and     decode
                (TAB.user_key_units,
                 'D', to_char(fnd_date.canonical_to_date(p_row_value)),
                 'N', p_row_value,
                 'T', upper (p_row_value),
                 null) =
                decode
                (TAB.user_key_units,
                 'D', to_char(fnd_date.canonical_to_date(R.row_low_range_or_name)),
                 'N', R.row_low_range_or_name,
                 'T', upper (R.row_low_range_or_name),
                 null)
        and     CINST.user_row_id                = R.user_row_id
        and     l_effective_date           between CINST.effective_start_date
        and     CINST.effective_end_date
        and     nvl (CINST.business_group_id,
                     p_bus_group_id)             = p_bus_group_id
        and     nvl (CINST.legislation_code,
                     g_leg_code)                 = g_leg_code;
Line: 103

        select  CINST.value
        into    l_value
        from    pay_user_column_instances_f        CINST
        ,       pay_user_columns                   C
        ,       pay_user_rows_f                    R
        ,       pay_user_tables                    TAB
        where   upper(TAB.user_table_name)       = upper(p_table_name)
        and     nvl (TAB.business_group_id,
                     p_bus_group_id)             = p_bus_group_id
        and     nvl (TAB.legislation_code,
                     g_leg_code)                 = g_leg_code
        and     C.user_table_id                  = TAB.user_table_id
        and     nvl (C.business_group_id,
                     p_bus_group_id)             = p_bus_group_id
        and     nvl (C.legislation_code,
                     g_leg_code)                 = g_leg_code
        and     upper (C.user_column_name)       = upper (p_col_name)
        and     CINST.user_column_id             = C.user_column_id
        and     R.user_table_id                  = TAB.user_table_id
        and     l_effective_date           between R.effective_start_date
        and     R.effective_end_date
        and     nvl (R.business_group_id,
                     p_bus_group_id)             = p_bus_group_id
        and     nvl (R.legislation_code,
                     g_leg_code)                 = g_leg_code
        and     to_number (p_row_value)
        between to_number (R.row_low_range_or_name)
        and     to_number (R.row_high_range)
        and     TAB.user_key_units               = 'N'
        and     CINST.user_row_id                = R.user_row_id
        and     l_effective_date           between CINST.effective_start_date
        and     CINST.effective_end_date
        and     nvl (CINST.business_group_id,
                     p_bus_group_id)             = p_bus_group_id
        and     nvl (CINST.legislation_code,
                     g_leg_code)                 = g_leg_code;