ORA-00937: not a single-group group function
ORA-00937: not a single-group group function
(OP)
DECODE("PS_DEPENDENT_BENEF"."DEPENDENT_BENEF",'02',( DECODE((MAX(DECODE("PS_HEALTH_BENEFIT"."PLAN_TYPE",'10' ,"PS_HEALTH_BENEFIT"."COVRG_CD" ) )),'4', (MAX( DECODE("PS_HEALTH_BENEFIT"."PLAN_TYPE",'10' , "PS_HEALTH_BENEFIT"."BENEFIT_PLAN") )) ,'5', (MAX( DECODE("PS_HEALTH_BENEFIT"."PLAN_TYPE",'10' , "PS_HEALTH_BENEFIT"."BENEFIT_PLAN") ) ) ) ) )
I want the benefit plan to carry over if there is a second dependent listed. Is this possible? If I add 'MAX' at the beginning then I get a ORA-00978: nested group function without GROUP BY error
I want the benefit plan to carry over if there is a second dependent listed. Is this possible? If I add 'MAX' at the beginning then I get a ORA-00978: nested group function without GROUP BY error
RE: ORA-00937: not a single-group group function
http://CharlesCook.com
Specializing in ReportSmith Training and Consulting
RE: ORA-00937: not a single-group group function
I have 1 Derived Field to pull the "coverage plan"
and I have 1 Derived Field to pull "dependants".
If there is a "dependant" I want the "benefit plan" to pull over only if the "coverage plan" applies.
If an employee has family coverage (4) I want the plan to pull over for each dependant. If the employee has dependants but the coverage is employee only I would not want the benefit plan to come over. If there is no dependant then I want nothing pull over.
RE: ORA-00937: not a single-group group function
Sorry I don't have access to any Benefit data right now so I won't be able to help.
http://CharlesCook.com
Specializing in ReportSmith Training and Consulting