Sign in
apache
/
vxquery
/
43e6daad781a16c230210812f6e6ffeb7aa55936
/
.
/
vxquery-xtest
/
src
/
test
/
resources
/
Queries
/
XQuery
/
Aggregate
/
Partition-1
/
count.xq
blob: 673ce08001208b6de64ca8854231ed0ad7326f3d [
file
] [
log
] [
blame
]
(: XQuery Aggregate Query :)
(: Find the number of wind sensor readings. :)
fn:count
(
let
$collection
:=
"ghcnd"
for
$r
in
collection
(
$collection
)/dataCollection/
data
where
$r
/dataType
eq
"AWND"
return
$r
/value
)