| 191 | |
| 192 | == Résultats du modèle sans impacts anthropiques == |
| 193 | {{{ |
| 194 | #!sql |
| 195 | drop table if exists rht.tableresultmodelwitoutImpact; |
| 196 | create table rht.tableresultmodelwitoutImpact as ( |
| 197 | select 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 |
| 204 | join |
| 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 |
| 208 | join |
| 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 |
| 212 | join |
| 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 | }}} |