| 155 | |
| 156 | |
| 157 | A FINIR |
| 158 | {{{ |
| 159 | select count(*) from roe_v2.pre_ice_v2 where hauteur_chute='-999' ---31611 lines |
| 160 | |
| 161 | Ci-dessous la requête pour la jointure entre les différentes tables : |
| 162 | SELECT |
| 163 | rht_topology.id_drain, |
| 164 | roe_geo_v2.idtrcart, |
| 165 | roe_geo_v2.id_roe, |
| 166 | pre_ice_v2.hauteur_chute, |
| 167 | rht_topology.the_geom, |
| 168 | rht_topology.fnode, |
| 169 | rht_topology.tnode, |
| 170 | rht_topology.length, |
| 171 | rht_topology.nextdownid, |
| 172 | rht_topology.noeudmer, |
| 173 | rht_topology.cumnbbar, |
| 174 | rht_topology.dmer, |
| 175 | rht_topology.id_draintopo, |
| 176 | pre_ice_v2.hauteur_terrain, |
| 177 | pre_ice_v2.note_fr_anguille |
| 178 | FROM |
| 179 | rht.rht_topology, |
| 180 | roe_v2.roe_geo_v2, |
| 181 | roe_v2.pre_ice_v2, |
| 182 | rht.rht_bdcarthage2 |
| 183 | WHERE |
| 184 | roe_geo_v2.id_roe = pre_ice_v2.id_roe AND |
| 185 | rht_bdcarthage2.id_drain = rht_topology.id_drain AND |
| 186 | rht_bdcarthage2.id_bdcarth = cast(roe_geo_v2.idtrcart as bigint) ; ---49212 lines |
| 187 | }}} |