| 52 | == Table attributs |
| 53 | {{{ |
| 54 | #!sql |
| 55 | alter table rht.attributs_rht_fev_2011_vs2 add column altitude1 numeric; |
| 56 | update rht.attributs_rht_fev_2011_vs2 set altitude1=cast(altitude as numeric); |
| 57 | alter table rht.attributs_rht_fev_2011_vs2 drop column altitude; |
| 58 | alter table rht.attributs_rht_fev_2011_vs2 rename column altitude1 to altitude; |
| 59 | |
| 60 | alter table rht.attributs_rht_fev_2011_vs2 add column pente1 numeric; |
| 61 | update rht.attributs_rht_fev_2011_vs2 set pente1=cast(pente as numeric); |
| 62 | alter table rht.attributs_rht_fev_2011_vs2 drop column pente; |
| 63 | alter table rht.attributs_rht_fev_2011_vs2 rename column pente1 to pente; |
| 64 | |
| 65 | alter table rht.rhtvs2 add column relative_distance numeric; |
| 66 | update rht.rhtvs2 set relative_distance=dmer/(dsource+dmer); |
| 67 | }}} |