blob: 0b50c36c064ea3ec34fb044031905e389aa9efed [file] [log] [blame]
(: XQuery Aggregate Query :)
(: Find the highest recorded temperature (TMAX) in Celsius. :)
fn:max(
let $collection := "/tmp/1.0_partition_ghcnd_all_xml/sensors"
for $r in collection($collection)/dataCollection/data
where $r/dataType eq "TMAX"
return $r/value
) div 10