Mercurial > dive4elements > river
comparison flys-aft/src/main/resources/sql/aft-common.properties @ 4775:d9f1202cef78
Do the pairing of FLYS and AFT discharge tables by the field 'ABFLUSSTAFEL.BFG_ID' in
AFT and 'discharge_table.bfg_id' in FLYS.
TODO: Create new column in discharge_tabel.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 05 Jan 2013 14:52:55 +0100 |
parents | 9dcc32fc5167 |
children | 2b7f44c80857 |
comparison
equal
deleted
inserted
replaced
4774:9dcc32fc5167 | 4775:d9f1202cef78 |
---|---|
1 select.gewaesser = SELECT GEWAESSER_NR, NAME FROM SL_GEWAESSER | 1 select.gewaesser = SELECT GEWAESSER_NR, NAME FROM SL_GEWAESSER |
2 select.messstelle = \ | 2 select.messstelle = \ |
3 SELECT NAME, MESSSTELLE_NR \ | 3 SELECT NAME, MESSSTELLE_NR \ |
4 FROM MESSSTELLE \ | 4 FROM MESSSTELLE \ |
5 WHERE GEWAESSER_NR = :GEWAESSER_NR AND STATIONIERUNG BETWEEN :START_KM AND :END_KM | 5 WHERE GEWAESSER_NR = :GEWAESSER_NR AND STATIONIERUNG BETWEEN :START_KM AND :END_KM |
6 select.abflusstafel = SELECT ABFLUSSTAFEL_NR, \ | 6 select.abflusstafel = \ |
7 ABFLUSSTAFEL_BEZ, \ | 7 SELECT ABFLUSSTAFEL_NR, \ |
8 strftime('%s', GUELTIG_VON) * 1000 AS GUELTIG_VON, \ | 8 ABFLUSSTAFEL_BEZ, \ |
9 strftime('%s', GUELTIG_BIS) * 1000 AS GUELTIG_BIS, \ | 9 strftime('%s', GUELTIG_VON) * 1000 AS GUELTIG_VON, \ |
10 PEGELNULLPUNKT FROM ABFLUSSTAFEL WHERE MESSSTELLE_NR LIKE :number | 10 strftime('%s', GUELTIG_BIS) * 1000 AS GUELTIG_BIS, \ |
11 PEGELNULLPUNKT, \ | |
12 BFG_ID \ | |
13 FROM ABFLUSSTAFEL \ | |
14 WHERE MESSSTELLE_NR LIKE :number | |
11 select.tafelwert = SELECT TAFELWERT_NR AS id, WASSERSTAND AS w, ABFLUSS AS q FROM TAFELWERT \ | 15 select.tafelwert = SELECT TAFELWERT_NR AS id, WASSERSTAND AS w, ABFLUSS AS q FROM TAFELWERT \ |
12 WHERE ABFLUSSTAFEL_NR = :number | 16 WHERE ABFLUSSTAFEL_NR = :number |
13 | 17 |