Sign in
apache
/
vxquery
/
43e6daad781a16c230210812f6e6ffeb7aa55936
/
.
/
vxquery-xtest
/
src
/
test
/
resources
/
Queries
/
XQuery
/
Aggregate
/
Partition-2
/
max.xq
blob: 3f283cb3f08428f841f1004a871786d3bb2a9006 [
file
] [
log
] [
blame
]
(: XQuery Aggregate Query :)
(: Find the highest max temperature. :)
fn:max
(
let
$collection
:=
"ghcnd_half_1|ghcnd_half_2"
for
$r
in
collection
(
$collection
)/dataCollection/
data
where
$r
/dataType
eq
"TMAX"
return
$r
/value
)