comparison flys-aft/src/main/resources/sql/aft-common.properties @ 5258:da1e897c7224

Set the BFG_ID for current discharge tables in FLYS.
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 12 Mar 2013 19:15:18 +0100
parents 2b7f44c80857
children 7a68967ca72a
comparison
equal deleted inserted replaced
5257:46e984a3d576 5258:da1e897c7224
14 FROM ABFLUSSTAFEL \ 14 FROM ABFLUSSTAFEL \
15 WHERE MESSSTELLE_NR LIKE :number 15 WHERE MESSSTELLE_NR LIKE :number
16 select.tafelwert = \ 16 select.tafelwert = \
17 SELECT TAFELWERT_NR AS id, WASSERSTAND AS w, ABFLUSS AS q FROM TAFELWERT \ 17 SELECT TAFELWERT_NR AS id, WASSERSTAND AS w, ABFLUSS AS q FROM TAFELWERT \
18 WHERE ABFLUSSTAFEL_NR = :number 18 WHERE ABFLUSSTAFEL_NR = :number
19 19 select.bfg.id.current = \
20 SELECT BFG_ID AS BFG_ID FROM ABFLUSSTAFEL \
21 WHERE GUELTIG_VON IN ( \
22 SELECT min(GUELTIG_VON) FROM ABFLUSSTAFEL \
23 WHERE GUELTIG_VON IS NOT NULL AND GUELTIG_BIS IS NULL \
24 AND MESSSTELLE_NR LIKE :number) \
25 AND MESSSTELLE_NR :number

http://dive4elements.wald.intevation.org