Changes between Version 19 and Version 20 of Model Results


Ignore:
Timestamp:
Jul 27, 2012 2:20:23 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Model Results

    v19 v20  
    189189E:\IAV\eda\rht>psql -U postgres -f "resultmodel.sql" eda2.0_RHT 
    190190}}} 
     191 
     192== Résultats du modèle sans impacts anthropiques == 
     193{{{ 
     194#!sql 
     195drop table if exists rht.tableresultmodelwitoutImpact; 
     196create table rht.tableresultmodelwitoutImpact as ( 
     197select sub1.*, 
     198        sub2.res_value as md, 
     199        sub3.res_value as mdmpa, 
     200        sub4.res_value as abondance 
     201          from 
     202        (select id_drain,dmer,dsource,res_value as mpa, the_geom from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     203        res_mod_id=32) as sub1 
     204join 
     205        (select id_drain, res_value from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     206        res_mod_id=33) as sub2 
     207        on sub1.id_drain=sub2.id_drain 
     208join  
     209        (select id_drain, res_value from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     210        res_mod_id=34) as sub3 
     211        on sub1.id_drain=sub3.id_drain 
     212join  
     213        (select id_drain, res_value from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     214        res_mod_id=35) as sub4 
     215        on sub1.id_drain=sub4.id_drain 
     216); 
     217}}}