Changes between Version 3 and Version 4 of Station Hydro


Ignore:
Timestamp:
Mar 5, 2012 3:28:55 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Station Hydro

    v3 v4  
    4343 
    4444-- Récupération des attributs Rht -- 
     45drop table if exists pate.station_hydro_rhtvs2; 
    4546create table pate.station_hydro_rhtvs2 as ( 
    46         select s.*, a.module_icinf, a.module, a.module_icsup, a.surf_bv, r.dmer, r.dsource from pate.station_hydro s  
     47        select s.*, a.module_icinf, a.module, a.module_icsup, a.surf_bv, r.dmer/1000 as dmer, r.dsource/1000 as dsource from pate.station_hydro s  
    4748        join rht.rhtvs2 r on s.id_drain=r.id_drain 
    4849        join rht.attributs_rht_fev_2011_vs2 a on s.id_drain=a.id_drain); 
     
    5152update pate.station_hydro_rhtvs2 set drelative=dmer/(dmer+dsource)*100; 
    5253 
     54COPY pate.station_hydro_rhtvs2 TO 'D:/CelineJouanin/PATE/Station_Hydro_rhtvs2.csv' with csv header delimiter as ';' 
     55 
    5356}}}