Changes between Version 14 and Version 15 of Model Results


Ignore:
Timestamp:
Jan 23, 2012 10:13:03 AM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Model Results

    v14 v15  
    129129); 
    130130}}} 
     131 
     132{{{ 
     133#!sql 
     134drop table if exists rht.tableresultmodel3; 
     135create table rht.tableresultmodel3 as ( 
     136select sub1.*, 
     137        sub2.res_value as mpa, 
     138        sub3.res_value as mdmpa, 
     139        sub4.res_value as abondance 
     140          from 
     141        (select id_drain,dmer,dsource,res_value as md, the_geom from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     142        res_mod_id=19) as sub1 
     143join 
     144        (select id_drain, res_value from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     145        res_mod_id=20) as sub2 
     146        on sub1.id_drain=sub2.id_drain 
     147join  
     148        (select id_drain, res_value from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     149        res_mod_id=21) as sub3 
     150        on sub1.id_drain=sub3.id_drain 
     151join  
     152        (select id_drain, res_value from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     153        res_mod_id=22) as sub4 
     154        on sub1.id_drain=sub4.id_drain 
     155); 
     156}}}