Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ORA-00937: not a single-group group function

Status
Not open for further replies.

ttrsnoob

Technical User
Sep 8, 2008
13
US
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 have 1 Derived Field to pull the "benefit plan"
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.
 
Just getting back to this.

Sorry I don't have access to any Benefit data right now so I won't be able to help.

Specializing in ReportSmith Training and Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top