Changes between Version 16 and Version 17 of Model Results


Ignore:
Timestamp:
Jan 25, 2012 5:25:38 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Model Results

    v16 v17  
    155155); 
    156156}}} 
     157 
     158 
     159{{{ 
     160drop table if exists rht.tableresultmodel4; 
     161create table rht.tableresultmodel4 as ( 
     162select sub1.*, 
     163        sub2.res_value as mpa, 
     164        sub3.res_value as mdmpa, 
     165        sub4.res_value as abondance 
     166          from 
     167        (select id_drain,dmer,dsource,res_value as md, the_geom from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     168        res_mod_id=23) as sub1 
     169join 
     170        (select id_drain, res_value from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     171        res_mod_id=24) as sub2 
     172        on sub1.id_drain=sub2.id_drain 
     173join  
     174        (select id_drain, res_value from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     175        res_mod_id=25) as sub3 
     176        on sub1.id_drain=sub3.id_drain 
     177join  
     178        (select id_drain, res_value from rht.rhtvs2 join rht.resultmodel on res_id_drain=id_drain where  
     179        res_mod_id=26) as sub4 
     180        on sub1.id_drain=sub4.id_drain 
     181); 
     182}}}