How to use a GroupAggregator to Return Rows That Have the Minimum Value for Each Given Group?
(Doc ID 2045791.1)
Last updated on NOVEMBER 06, 2018
Applies to:Oracle Coherence - Version 3.7.1 to 220.127.116.11.2 [Release AS10g to 12c]
Information in this document applies to any platform.
The example cache has the following fruit objects:
The goal is to return the SQL equivalent of a correlated sub-query, that is return a result set that is grouped by type and contains the entry (and all attributes) that has the minimum (price), as shown in this table:
This is a simplistic example, in the real world each object might have many more attributes that need to be returned, and which aren't part of the grouping or aggregation.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document