comparison artifacts/doc/conf/meta-data.xml @ 8582:17a3030bbda2

Update SQL-statements to schema-changes in rev 6d8d7425a6b5.
author Tom Gottfried <tom@intevation.de>
date Mon, 16 Mar 2015 16:59:37 +0100
parents 17c476e90c07
children 07c9ac22f611
comparison
equal deleted inserted replaced
8581:073ea4bcea58 8582:17a3030bbda2
1869 WITH sta 1869 WITH sta
1870 AS (SELECT bhs.id, 1870 AS (SELECT bhs.id,
1871 bhs.description, 1871 bhs.description,
1872 bhsv.station, 1872 bhsv.station,
1873 bhs.year 1873 bhs.year
1874 FROM bed_height_single bhs 1874 FROM bed_height bhs
1875 JOIN bed_height_single_values bhsv 1875 JOIN bed_height_values bhsv
1876 ON bhsv.bed_height_single_id = bhs.id 1876 ON bhsv.bed_height_id = bhs.id
1877 WHERE bhs.river_id = ${river_id} 1877 WHERE bhs.river_id = ${river_id}
1878 AND bhsv.station BETWEEN ${fromkm} AND ${tokm}), 1878 AND bhsv.station BETWEEN ${fromkm} AND ${tokm}),
1879 csta 1879 csta
1880 AS (SELECT b1.id AS b1id, 1880 AS (SELECT b1.id AS b1id,
1881 b1.description AS b1desc, 1881 b1.description AS b1desc,
2033 '&lt;BR&gt;Lagesystem: ' || ls.name || 2033 '&lt;BR&gt;Lagesystem: ' || ls.name ||
2034 '&lt;BR&gt;Höhensystem: ' || cur_em.name || 2034 '&lt;BR&gt;Höhensystem: ' || cur_em.name ||
2035 '&lt;BR&gt;ursprüngliches Höhensystem: ' || old_em.name || 2035 '&lt;BR&gt;ursprüngliches Höhensystem: ' || old_em.name ||
2036 '&lt;BR&gt;Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) || 2036 '&lt;BR&gt;Strecke: ' || round(r.a, 1) || '-' || round(r.b, 1) ||
2037 '&lt;BR&gt;Auswerter: ' || bhs.evaluation_by AS info 2037 '&lt;BR&gt;Auswerter: ' || bhs.evaluation_by AS info
2038 FROM bed_height_single bhs 2038 FROM bed_height bhs
2039 JOIN bed_height_type bht ON bht.id = bhs.type_id 2039 JOIN bed_height_type bht ON bht.id = bhs.type_id
2040 JOIN location_system ls ON ls.id = location_system_id 2040 JOIN location_system ls ON ls.id = location_system_id
2041 JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id 2041 JOIN elevation_model cur_em ON cur_em.id = cur_elevation_model_id
2042 LEFT JOIN elevation_model old_em 2042 LEFT JOIN elevation_model old_em
2043 ON old_em.id = old_elevation_model_id 2043 ON old_em.id = old_elevation_model_id

http://dive4elements.wald.intevation.org