blob: 3f283cb3f08428f841f1004a871786d3bb2a9006 [file] [log] [blame]
(: XQuery Aggregate Query :)
(: Find the highest max temperature. :)
fn:max(
let $collection := "ghcnd_half_1|ghcnd_half_2"
for $r in collection($collection)/dataCollection/data
where $r/dataType eq "TMAX"
return $r/value
)