The following lines contain the word 'select', 'insert', 'update' or 'delete':
select meaning into vScaleByMeaning from ams_lookups where lookup_type ='AMS_IO_SCALE_BY' and lookup_code = vScaleByCode;
select to_char(start_date,'mm-dd') ||' to '|| to_char(end_date,'mm-dd') into xPeriod from bim_r_periods where calc_type = 'FIXED' and period_type = vPeriod;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select to_char(start_date,'mm-dd') ||' to '|| to_char(end_date,'mm-dd') into xPeriod from bim_r_periods where calc_type = 'FIXED' and period_type = vPeriod;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select substr(vPeriod,0,INSTR(vPeriod,'|')-1) into xRetString from dual;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select substr(vPeriod,0,INSTR(vPeriod,'|')-1) into xRetString from dual;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select meaning into vScaleByMeaning from ams_lookups
where lookup_type ='AMS_IO_SCALE_BY' and lookup_code = vScaleByCode;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select meaning into vScaleByMeaning from ams_lookups
where lookup_type ='AMS_IO_SCALE_BY' and lookup_code = vScaleByCode;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select meaning into vScaleByMeaning from ams_lookups
where lookup_type ='AMS_IO_SCALE_BY' and lookup_code = vScaleByCode;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select meaning into vScaleByMeaning from ams_lookups
where lookup_type ='AMS_IO_SCALE_BY' and lookup_code = vScaleByCode;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select fnd_profile.VALUE('AMS_DEFAULT_CURR_CODE') into vCurrency from dual;
select substr(vDefPeriod,0,INSTR(vDefPeriod,'-',10)-1) into xRetString from dual;
select year, qtr into xYear, xQtr
from bim_r_fd_dim_sum_mv where year||'-'||qtr = xRetString and rownum < 2;
select year, qtr,month,display_type into xYear, xQtr, xMonth,xDisplayType
from bim_r_fd_dim_sum_mv where year||'-'||qtr||'-'||month||'-'||display_type = vContext
and rownum < 2;
select to_char(start_date,fnd_profile.VALUE('ICX_DATE_FORMAT_MASK')) ||' ' ||vTo||' '||
to_char(end_date,fnd_profile.VALUE('ICX_DATE_FORMAT_MASK')) into xPeriod
from bim_r_periods where calc_type = 'ROLLING' and period_type = xDisplayType;
select year, qtr,month,display_type into xYear, xQtr, xMonth,xDisplayType
from bim_r_fd_dim_sum_mv where year||'-'||qtr||'-'||month||'-'||display_type = vContext
and rownum < 2;
select to_char(start_date,fnd_profile.VALUE('ICX_DATE_FORMAT_MASK')) ||' ' ||vTo||' '||
to_char(end_date,fnd_profile.VALUE('ICX_DATE_FORMAT_MASK')) into xPeriod
from bim_r_periods where calc_type = 'ROLLING' and period_type = xDisplayType;
select year, qtr,month into xYear, xQtr, xMonth
from BIM_R_EVEN_DIM_SUM_MV where year||'-'||qtr||'-'||month = vContext and rownum < 2;
select year, qtr,month into xYear, xQtr, xMonth
from BIM_R_CAMP_DIM_SUM_MV where year||'-'||qtr||'-'||month = vContext and rownum < 2;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select substr(vContext,INSTR(vContext,'-',-1)+1) into xIncr from dual;
select start_date ||'-'|| end_date into xPeriod from bim_r_periods where calc_type = 'ROLLING' and period_type = xIncr;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select to_char(current_count_value,'999,999,999,999') into xCount from bim_r_camp_act_bin_mv a
where a.aggregate_by = 'INCREMENT'
and a.year is not null
and a.qtr is not null
and a.month is not null
AND a.display_type is not null and rownum < 2;
select /*+ index_desc(A, BIM_R_CAMP_ACT_BIN_MV_N4) */
TO_CHAR(A.current_count_value,'999,999,999,999') into xCount
from BIM_R_CAMP_ACT_BIN_MV A
where A.AGGREGATE_BY = 'MONTH' AND A.YEAR IS NOT NULL
AND A.QTR IS NOT NULL AND A.MONTH IS NOT NULL
AND A.DISPLAY_TYPE IS NOT NULL
and rownum <2;
select
meaning into vRepName
from
fnd_lookup_values
where
lookup_type= 'BIM_DBC_DCF_TITLES'
and lookup_code = vCompCode
and language = userenv('LANG');
select substr(vDefPeriod,0,INSTR(vDefPeriod,'-',10)-1) into xRetString from dual;
select year, qtr into xYear, xQtr
from bim_r_fd_dim_sum_mv where year||'-'||qtr = xRetString and rownum < 2;
select year, qtr,month,display_type into xYear, xQtr, xMonth,xDisplayType
from bim_r_fd_dim_sum_mv where year||'-'||qtr||'-'||month||'-'||display_type = vContext
and rownum < 2;
select to_char(start_date,fnd_profile.VALUE('ICX_DATE_FORMAT_MASK')) ||' ' ||vTo||' '||
to_char(end_date,fnd_profile.VALUE('ICX_DATE_FORMAT_MASK')) into xPeriod
from bim_r_periods where calc_type = 'ROLLING' and period_type = xDisplayType;
select year, qtr,month,display_type into xYear, xQtr, xMonth,xDisplayType
from bim_r_fd_dim_sum_mv where year||'-'||qtr||'-'||month||'-'||display_type = vContext
and rownum < 2;
select to_char(start_date,fnd_profile.VALUE('ICX_DATE_FORMAT_MASK')) ||' ' ||vTo||' '||
to_char(end_date,fnd_profile.VALUE('ICX_DATE_FORMAT_MASK')) into xPeriod
from bim_r_periods where calc_type = 'ROLLING' and period_type = xDisplayType;
select year, qtr,month into xYear, xQtr, xMonth
from BIM_R_EVEN_DIM_SUM_MV where year||'-'||qtr||'-'||month = vContext and rownum < 2;
select year, qtr,month into xYear, xQtr, xMonth
from BIM_R_CAMP_DIM_SUM_MV where year||'-'||qtr||'-'||month = vContext and rownum < 2;