Mercurial > dive4elements > river
diff artifacts/doc/conf/meta-data.xml @ 7450:d4024d245f4e
meta-data.xml: Simplify query for densities a bit, sort by depth.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 28 Oct 2013 11:52:14 +0100 |
parents | 97a5f16b976c |
children | 6b8d9c001329 |
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml Sun Oct 27 17:30:38 2013 +0100 +++ b/artifacts/doc/conf/meta-data.xml Mon Oct 28 11:52:14 2013 +0100 @@ -1254,9 +1254,9 @@ d.lower AS depth_lower, d.upper AS depth_upper FROM sediment_density sd - JOIN rivers r ON sd.river_id = r.id JOIN depths d ON sd.depth_id = d.id - WHERE r.id = ${river_id} + WHERE sd.river_id = ${river_id} + ORDER BY depth_upper </dc:statement> <dc:if test="dc:has-result()"> <dc:for-each>