Subversion Repositories eFlore/Projets.eflore-projets

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
755 raphael 1
/*
2
  Mise à jour de réferentiels NULL ou vides pour les observations avec nom_ret_nn
3
  75427 observations trouvées au 2013/07/19
4
 
5
  Les observations problématiques sont les suivantes:
6
  SELECT id_observation, nom_referentiel, nom_sel, nom_sel_nn, nom_ret, nom_ret_nn, nt, famille
7
  FROM cel_obs
8
  WHERE (nom_referentiel IS NULL OR nom_referentiel = '') AND nom_sel != '' AND nom_sel IS NOT NULL AND nom_ret_nn IS NOT NULL;
9
*/
10
 
11
/*
12
 TODO:
13
 SELECT * FROM cel_obs WHERE nom_ret_nn IS NULL;
14
CREATE TEMPORARY TABLE T_bis ( INDEX(`nom`)) AS
15
           (SELECT "bdtfx", CONCAT(b.nom_sci, ' ', b.auteur) AS nom, b.num_nom, b.num_taxonomique, b.famille FROM tb_eflore.bdtfx_v1_02 b
16
           UNION ALL
17
           SELECT "bdtxa", CONCAT(a.nom_sci, ' ', a.auteur) AS nom, a.num_nom, a.num_tax, a.famille FROM tb_eflore.bdtxa_v1_00 a);
18
 
19
 
20
 
21
DROP TEMPORARY TABLE IF EXISTS T_bis;