comparison artifacts/doc/conf/meta-data.xml @ 7451:6b8d9c001329

issue1345: Sort sediment densities by year.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 28 Oct 2013 12:14:46 +0100
parents d4024d245f4e
children cab749184ed7
comparison
equal deleted inserted replaced
7450:d4024d245f4e 7451:6b8d9c001329
1250 <dc:statement> 1250 <dc:statement>
1251 SELECT DISTINCT 1251 SELECT DISTINCT
1252 sd.id AS sdid, 1252 sd.id AS sdid,
1253 sd.description AS description, 1253 sd.description AS description,
1254 d.lower AS depth_lower, 1254 d.lower AS depth_lower,
1255 d.upper AS depth_upper 1255 d.upper AS depth_upper,
1256 min(sdv.year) AS year
1256 FROM sediment_density sd 1257 FROM sediment_density sd
1257 JOIN depths d ON sd.depth_id = d.id 1258 JOIN depths d ON sd.depth_id = d.id
1259 JOIN sediment_density_values sdv on sdv.sediment_density_id = sd.id
1258 WHERE sd.river_id = ${river_id} 1260 WHERE sd.river_id = ${river_id}
1259 ORDER BY depth_upper 1261 GROUP BY sd.id, sd.description, d.upper, d.lower
1262 ORDER BY year, depth_lower, depth_upper
1260 </dc:statement> 1263 </dc:statement>
1261 <dc:if test="dc:has-result()"> 1264 <dc:if test="dc:has-result()">
1262 <dc:for-each> 1265 <dc:for-each>
1263 <density description="{$depth_lower}-{$depth_upper} cm" 1266 <density description="{$depth_lower}-{$depth_upper} cm"
1264 factory="sedimentdensity" 1267 factory="sedimentdensity"

http://dive4elements.wald.intevation.org