Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I am in trouble. Can any body help me to calculate sum(a*b/100) in coherence.

1061788Dec 23 2013 — edited Dec 30 2013

Hello,

My name is Swadi. I have just started implementing coherence in one of the POC.

I have gone through some parts of coherence but did not find a solution for that.

Have some idea about GroupAggregator, EntryAggregator, ValueExtractor , ReflectionExtractor but that does not really solve the purpose.

e.g

Suppose there is a table with multiple columns, couple of them are "Price" and "Quantity". I need to calculate "Average price" of it.

In SQL query I used to write

Select product,customer, sum(price*qty)/sum(qty) as avgprice from order

group by product,customer

I need to write same logic in Coherence. Please help me.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2014
Added on Dec 23 2013
2 comments
1,407 views