| 7 | {{{ |
| 8 | alter table "ROE-BV" set schema rht |
| 9 | alter table rht."ROE-BV" rename to roe_pate_bv11axes |
| 10 | alter table rht.roe_pate_bv11axes rename column "Id_ROE" to Id_ROE |
| 11 | |
| 12 | select count(*) from rht.roe_pate_bv11axes limit 7 |
| 13 | |
| 14 | drop table if exists rht.rhtvs2_roe_pate_bv11axes; |
| 15 | create table rht.rhtvs2_roe_pate_bv11axes as ( |
| 16 | select r.id_drain,t.dmer, module, module_icinf, module_icsup, minqmx, minqmxicinf, minqmxicsup, b.* from rht.rhtvs2_roev2 r |
| 17 | join rht.roe_pate_bv11axes b on r.id_roe=b.Id_ROE |
| 18 | join rht.rhtvs2 t on t.id_drain=r.id_drain |
| 19 | join rht.attributs_rht_fev_2011_vs2 a on r.id_drain=a.id_drain); |
| 20 | }}} |