Sign in
apache
/
vxquery
/
43e6daad781a16c230210812f6e6ffeb7aa55936
/
.
/
vxquery-xtest
/
src
/
test
/
resources
/
Queries
/
XQuery
/
Aggregate
/
Partition-1
/
sum.xq
blob: 88371230aa38eab446b82985ebb89fad034f8401 [
file
] [
log
] [
blame
]
(: XQuery Aggregate Query :)
(: Find the total precipitation. :)
fn:sum
(
let
$collection
:=
"ghcnd"
for
$r
in
collection
(
$collection
)/dataCollection/
data
where
$r
/dataType
eq
"PRCP"
return
$r
/value
)