comparison artifacts/doc/conf/meta-data.xml @ 7666:c36aae57ad43

Order by year in sediment yield datacage.
author Tom Gottfried <tom.gottfried@intevation.de>
date Fri, 06 Dec 2013 14:27:03 +0100
parents 6d39b4066c91
children a6363e080e2c
comparison
equal deleted inserted replaced
7665:6d39b4066c91 7666:c36aae57ad43
1449 JOIN time_intervals ti ON sy.time_interval_id = ti.id 1449 JOIN time_intervals ti ON sy.time_interval_id = ti.id
1450 JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id 1450 JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id
1451 WHERE r.id = ${river_id} 1451 WHERE r.id = ${river_id}
1452 AND ti.stop_time IS NULL 1452 AND ti.stop_time IS NULL
1453 AND syv.station BETWEEN ${fromkm} AND ${tokm} 1453 AND syv.station BETWEEN ${fromkm} AND ${tokm}
1454 ORDER BY fraction 1454 ORDER BY fraction, year DESC
1455 </dc:statement> 1455 </dc:statement>
1456 <dc:call-macro name="loads"> 1456 <dc:call-macro name="loads">
1457 <dc:call-macro name="one-load"/> 1457 <dc:call-macro name="one-load"/>
1458 </dc:call-macro> 1458 </dc:call-macro>
1459 </dc:context> 1459 </dc:context>
1473 JOIN time_intervals ti ON sy.time_interval_id = ti.id 1473 JOIN time_intervals ti ON sy.time_interval_id = ti.id
1474 JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id 1474 JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id
1475 WHERE r.id = ${river_id} 1475 WHERE r.id = ${river_id}
1476 AND ti.stop_time IS NOT NULL 1476 AND ti.stop_time IS NOT NULL
1477 AND syv.station BETWEEN ${fromkm} AND ${tokm} 1477 AND syv.station BETWEEN ${fromkm} AND ${tokm}
1478 ORDER BY fraction 1478 ORDER BY fraction, startyear DESC, endyear DESC
1479 </dc:statement> 1479 </dc:statement>
1480 <dc:call-macro name="loads"> 1480 <dc:call-macro name="loads">
1481 <dc:call-macro name="epoch-load"/> 1481 <dc:call-macro name="epoch-load"/>
1482 </dc:call-macro> 1482 </dc:call-macro>
1483 </dc:context> 1483 </dc:context>

http://dive4elements.wald.intevation.org