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