Changes between Version 3 and Version 4 of Download and load RHT topology


Ignore:
Timestamp:
Oct 4, 2011 10:40:46 AM (14 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Download and load RHT topology

    v3 v4  
    3434#!sql 
    3535Alter table rht.topologie_rht_sept2011 rename column Length to length; 
    36  
    3736ALTER TABLE rht.topologie_rht_sept2011 RENAME COLUMN id_drain TO id_draintopo; 
    38 CREATE VIEW rht.rht_topology AS select * from rht.rht r inner join rht.topologie_rht_sept2011 t on t.id_draintopo=r.id_drain; 
    3937}}} 
    4038 
     
    6159{{{ 
    6260#!sql 
    63 select * from rht.topologie_rht_sept2011 where tnode not in (select fnode from rht.topologie_rht_sept2011); 
    64 create view rht.noeudmer as 
    65 select * from rht.rht r left join rht.topologie_rht_sept2011 t on r.id_drain=t.id_draintopo; 
     61select * from rht.rht r left join rht.topologie_rht_sept2011 t on r.id_drain=t.id_draintopo where id_draintopo is null;    --- 1 lines 
     62 
     63drop table if exists rht.rht_topology; 
     64drop table if exists rht.noeudmer; 
     65CREATE table rht.rht_topology AS select * from rht.rht r inner join rht.topologie_rht_sept2011 t on t.id_draintopo=r.id_drain; 
     66create table rht.noeudmer as select * from rht.rht_topology where tnode not in (select fnode from rht.topologie_rht_sept2011); 
     67 
     68COMMENT ON table rht.rht_topology IS 'Joining between rht and topologie_rht_sept2011 to see it on Qgis'; 
     69COMMENT ON table rht.noeudmer IS 'Table test to know the downstream node from the sea'; 
     70 
     71 
    6672}}}