| 41 | == Comparaison des effectifs de taxons de deux passes == |
| 42 | note : j'ai que des anguilles dans le dc6 et le symétrique ne marche pas (il me manque des noms de taxons) |
| 43 | {{{ |
| 44 | Select taxon, effectifdc5,effectifdc6 FROM( |
| 45 | select tax_nom_latin, |
| 46 | sum (lot_effectif) as effectifdc6 |
| 47 | FROM iav.vue_lot_ope_car v1 |
| 48 | WHERE ope_dic_identifiant=6 |
| 49 | AND ope_date_debut > '2007-01-01 00:00:00' |
| 50 | AND ope_date_debut < '2008-01-01 00:00:00' |
| 51 | GROUP BY tax_nom_latin) as sub1 |
| 52 | FULL OUTER JOIN |
| 53 | (select tax_nom_latin as taxon, |
| 54 | sum(lot_effectif) as effectifdc5 |
| 55 | FROM iav.vue_lot_ope_car v2 |
| 56 | WHERE ope_dic_identifiant=5 |
| 57 | AND ope_date_debut > '2007-01-01 00:00:00' |
| 58 | AND ope_date_debut < '2008-01-01 00:00:00' |
| 59 | GROUP BY tax_nom_latin) as sub2 |
| 60 | On sub2.taxon = sub1.tax_nom_latin; |
| 61 | }}} |
| 62 | ||Alosa||1112|||| |
| 63 | ||Anguilla anguilla||28||19652|| |
| 64 | ||Ctenopharyngodon idellus||8|||| |
| 65 | ||Cyprinus carpio||6|||| |
| 66 | ||Petromyzon marinus||115|||| |
| 67 | ||Salmo||1|||| |
| 68 | ||Silurus glanis||3|||| |
| 69 | ||Tinca tinca||1|||| |