blob: 1234a74cd94757828479bc2e9cd7c5b45fe6c348 [file] [log] [blame]
(: XQuery Aggregate Query :)
(: Find the highest recorded temperature (TMAX) in Celsius. :)
fn:max(
let $collection := "ghcnd_quarter_1|ghcnd_quarter_2|ghcnd_quarter_3|ghcnd_quarter_4"
for $r in collection($collection)/dataCollection/data
where $r/dataType eq "TMAX"
return $r/value
) div 10