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