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