Changes between Version 28 and Version 29 of CookBook join ROE_RHT


Ignore:
Timestamp:
Nov 2, 2011 3:50:51 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join ROE_RHT

    v28 v29  
    206206join rht.rht_topology as topo on bdc.id_drain=topo.id_drain; ---49212 lines 
    207207 
    208 alter table rht.rht_bdcarthage_roev2 add column nb_dams integer; 
    209 update rht.rht_bdcarthage_roev2 set nb_dams=1; 
     208alter table rht.rht_bdcarthage_roev2 add column nbdams integer; 
     209update rht.rht_bdcarthage_roev2 set nbdams=1; 
    210210 
    211211---Clause group by par id_bdcarthage 
    212 select id_drain, count(nb_dams) as nb_dams2 from rht.rht_bdcarthage_roev2 group by id_drain; 
     212select id_drain, count(nbdams) as nbdams from rht.rht_bdcarthage_roev2 group by id_drain; 
    213213 
    214214drop table if exists rht.rht_bdcarthage_roev2_nbdams; 
    215215create table rht.rht_bdcarthage_roev2_nbdams as 
    216 select id_drain, count(nb_dams) as nb_dams from rht.rht_bdcarthage_roev2 as r group by id_drain; 
    217 }}} 
     216select id_drain, count(nbdams) as nbdams from rht.rht_bdcarthage_roev2 as r group by id_drain; 
     217}}}