×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

ORA-00937: not a single-group group function

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

RE: ORA-00937: not a single-group group function

I don't think I can salvage this Derived Field.  Tell me what you want and I will take a try at it.

http://CharlesCook.com
Specializing in ReportSmith Training and Consulting

RE: ORA-00937: not a single-group group function

(OP)
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.

RE: ORA-00937: not a single-group group function

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.

http://CharlesCook.com
Specializing in ReportSmith Training and Consulting

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close