| 597 | {{{ |
| 598 | alter table rht.pate_mortalite add column id_drain integer; |
| 599 | update rht.pate_mortalite set id_drain=sub.id_drain from (select id_drain, id_roe from rht.pate) as sub where pate_mortalite.id_roe=sub.id_roe; |
| 600 | |
| 601 | alter table rht.pate_mortalite add column id_drain integer; |
| 602 | update rht.pate_mortalite set id_drain=sub.id_drain from (select id_drain, id_roe from rht.pate) as sub where pate_mortalite.id_roe=sub.id_roe; |
| 603 | update rht.pate_mortalite set id_drain='116909' where id_roe='ROE4907'; |
| 604 | update rht.pate_mortalite set id_drain='121003' where id_roe='ROE22958'; |
| 605 | insert into rht.pate(id_roe) values ('ROE4907'),('ROE22958'); |
| 606 | |
| 607 | update rht.pate_mortalite set dmer=sub.dmer/1000 from (select id_drain, dmer from rht.rhtvs2) as sub where pate_mortalite.id_drain=sub.id_drain; |
| 608 | update rht.pate_mortalite set module=sub.module from (select id_drain, module from rht.attributs_rht_fev_2011_vs2) as sub where pate_mortalite.id_drain=sub.id_drain; |
| 609 | |
| 610 | alter table rht.pate_mortalite add column mortalite numeric; |
| 611 | }}} |
| 612 | |
| 613 | |