Changes between Version 24 and Version 25 of CookBook join ROE_RHT


Ignore:
Timestamp:
Oct 27, 2011 5:21:16 PM (14 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join ROE_RHT

    v24 v25  
    153153C:\"Program Files"\PostgreSQL\8.4\bin\pg_dump  -U postgres -p 5432 -t rht.rht_bdcarthage_roev2 eda2.0_RHT> rht_bdcarthage_roev2.sql 
    154154}}} 
     155 
     156 
     157A FINIR 
     158{{{ 
     159select count(*) from roe_v2.pre_ice_v2 where hauteur_chute='-999'   ---31611 lines 
     160 
     161Ci-dessous la requête pour la jointure entre les différentes tables : 
     162SELECT  
     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 
     178FROM  
     179  rht.rht_topology,  
     180  roe_v2.roe_geo_v2,  
     181  roe_v2.pre_ice_v2,  
     182  rht.rht_bdcarthage2 
     183WHERE  
     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}}}