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; |
| 61 | select * 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 | |
| 63 | drop table if exists rht.rht_topology; |
| 64 | drop table if exists rht.noeudmer; |
| 65 | CREATE table rht.rht_topology AS select * from rht.rht r inner join rht.topologie_rht_sept2011 t on t.id_draintopo=r.id_drain; |
| 66 | create table rht.noeudmer as select * from rht.rht_topology where tnode not in (select fnode from rht.topologie_rht_sept2011); |
| 67 | |
| 68 | COMMENT ON table rht.rht_topology IS 'Joining between rht and topologie_rht_sept2011 to see it on Qgis'; |
| 69 | COMMENT ON table rht.noeudmer IS 'Table test to know the downstream node from the sea'; |
| 70 | |
| 71 | |