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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decode Function

Status
Not open for further replies.

mur76

Technical User
May 5, 2003
29
US
Hi,

Iam having this selection cretiria to my object..It is giving the error as a not a single group group function..The syntax is :
decode(@Select(Score Card\Cfo Approval Ind),'Y',@Select(Score Card\sumofactuals),0)
sumofactuals is a measure object.
I know that I have to give cfo_approval_ind in the group by function, but in the designer how I can give group by function?need your comments.
 
You could remove the datebase SUM() in the object sumofactuals and use the Aggregation property of BO to do the summing.

This would mean more rows returned by the database, but does allow you to get teh above to work.
 
Don't do what sh4kil recommends in this case. You'll be unhappy.

Stop using @select in your decode and use the real "actuals" column.

Then put a sum around your whole decode statement.

Steve Krandel
VERITAS Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top