
cts:min( $range-index as cts:reference, [$options as xs:string*], [$query as cts:query?], [$forest-ids as xs:unsignedLong*] ) as xs:anyAtomicType?
Returns the minimal value given a value lexicon.
This function performs the calculation in parallel in all data nodes then
aggregates the values. It generally performs better than fn:min,
especially on large clusters.
xquery version "1.0-ml";
(:
This query assumes an element range index is configured
in the database for the 'Amount' element.
:)
cts:min(cts:element-reference(xs:QName("Amount")))
=> 59.95000000000000125