Changes between Version 28 and Version 29 of CookBook join ROE_RHT
- Timestamp:
- Nov 2, 2011 3:50:51 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook join ROE_RHT
v28 v29 206 206 join rht.rht_topology as topo on bdc.id_drain=topo.id_drain; ---49212 lines 207 207 208 alter table rht.rht_bdcarthage_roev2 add column nb _dams integer;209 update rht.rht_bdcarthage_roev2 set nb _dams=1;208 alter table rht.rht_bdcarthage_roev2 add column nbdams integer; 209 update rht.rht_bdcarthage_roev2 set nbdams=1; 210 210 211 211 ---Clause group by par id_bdcarthage 212 select id_drain, count(nb _dams) as nb_dams2from rht.rht_bdcarthage_roev2 group by id_drain;212 select id_drain, count(nbdams) as nbdams from rht.rht_bdcarthage_roev2 group by id_drain; 213 213 214 214 drop table if exists rht.rht_bdcarthage_roev2_nbdams; 215 215 create 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 }}} 216 select id_drain, count(nbdams) as nbdams from rht.rht_bdcarthage_roev2 as r group by id_drain; 217 }}}