Changes between Version 93 and Version 94 of CookBook join ROE_CCM
- Timestamp:
- May 26, 2010 2:33:56 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook join ROE_CCM
v93 v94 175 175 The final script is below 176 176 {{{ 177 #!sql 177 178 ALTER TABLE geobs2010.obstacle_referentiel ADD COLUMN goodproj boolean; 178 179 UPDATE geobs2010.obstacle_referentiel set goodproj=FALSE ; … … 182 183 We now have to use, and can display the dams left out in qgis 183 184 {{{ 185 #!sql 184 186 select * from geobs2010.obstacle_referentiel where goodproj=TRUE 185 187 }}} … … 189 191 We create a table of regions 190 192 {{{ 193 #!sql 191 194 DROP TABLE if exists france.region; 192 195 CREATE TABLE france.region as( … … 200 203 Calcul du pourcentage de barrages projetés par région. 201 204 {{{ 205 #!sql 202 206 DROP TABLE if exists geobs2010.pourcentageprojette; 203 207 CREATE TABLE geobs2010.pourcentageprojette AS( … … 229 233 the table is used in the loaddb method of BaseEdaCCMriversegmentsROE 230 234 {{{ 235 #!sql 231 236 SELECT sum(height) AS c_height,sum(score) AS c_score,sum(nbdams) AS nbdams,r.gid AS gid 232 237 FROM geobs2010.roe_ccm_300 j RIGHT JOIN ccm21.riversegments r