60: p_business_group_id per_all_people_f.business_group_id%type,
61: p_session_date date)
62: return VARCHAR2 is
63:
64: l_formula_id ff_formulas_f_v.formula_id%type;
65: l_effective_start_date ff_formulas_f_v.effective_start_date%type;
66: l_target_group varchar2(10);
67:
68: begin
61: p_session_date date)
62: return VARCHAR2 is
63:
64: l_formula_id ff_formulas_f_v.formula_id%type;
65: l_effective_start_date ff_formulas_f_v.effective_start_date%type;
66: l_target_group varchar2(10);
67:
68: begin
69: begin
68: begin
69: begin
70: select formula_id ,effective_start_date
71: into l_formula_id,l_effective_start_date
72: from ff_formulas_f_v
73: where formula_name = 'NL_TARGET_GROUP'
74: and p_session_date between effective_start_date and
75: effective_end_date
76: and verified = 'Y';