Mercurial > dive4elements > river
comparison flys-aft/src/main/resources/sql/flys-common.properties @ 4753:a310aceb2e51
Fetch calculation range (Berechnungsstrecke) for FLYS rivers, too.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 03 Jan 2013 14:19:45 +0100 |
parents | 8ba11e13ae8a |
children | d9f1202cef78 |
comparison
equal
deleted
inserted
replaced
4752:ce570c74aa94 | 4753:a310aceb2e51 |
---|---|
1 select.river = SELECT id, name FROM rivers | 1 select.rivers = \ |
2 SELECT r.id AS id, r.name AS name, min(wcv.position) AS min_km, max(wcv.position) AS max_km \ | |
3 FROM rivers r \ | |
4 JOIN wsts w ON r.id = w.river_id \ | |
5 JOIN wst_columns wc ON w.id = wc.wst_id \ | |
6 JOIN wst_column_values wcv ON wcv.wst_column_id = wc.id \ | |
7 WHERE w.kind = 0 \ | |
8 GROUP BY r.id, r.name | |
2 select.gauges = SELECT id, name, official_number FROM gauges WHERE river_id = :river_id | 9 select.gauges = SELECT id, name, official_number FROM gauges WHERE river_id = :river_id |
3 next.gauge.id = SELECT NEXTVAL('GAUGES_ID_SEQ') AS gauge_id | 10 next.gauge.id = SELECT NEXTVAL('GAUGES_ID_SEQ') AS gauge_id |
4 insert.gauge = INSERT INTO gauges (id, name, river_id, station, aeo, official_number, datum) \ | 11 insert.gauge = INSERT INTO gauges (id, name, river_id, station, aeo, official_number, datum) \ |
5 VALUES(:id, :name, :river_id, :station, :aeo, :official_number, :datum) | 12 VALUES(:id, :name, :river_id, :station, :aeo, :official_number, :datum) |
6 select.timeintervals = SELECT id, start_time, stop_time FROM time_intervals | 13 select.timeintervals = SELECT id, start_time, stop_time FROM time_intervals |