1064 : INSERT INTO got_314132214_desc_cles
SELECT
a.id_indi
, case when b.id_wife is not NULL then b.id_wife when c.id_husb is not NULL then c.id_husb end
, case when b.id_wife is not NULL then b.date_evene when c.id_husb is not NULL then c.date_evene end
, case when b.id_wife is not NULL then b.lieu_evene when c.id_husb is not NULL then c.lieu_evene end
, case when b.id_wife is not NULL then b.dept_evene when c.id_husb is not NULL then c.dept_evene end
, a.id_indi
,if (a.id_indi != @old, 'O', 'N')
,@old := a.id_indi
FROM got__individu a
LEFT OUTER JOIN got__evenement b ON (a.id_indi = b.id_husb and b.type_evene = 'MARR')
LEFT OUTER JOIN got__evenement c ON (a.id_indi = c.id_wife and c.type_evene = 'MARR')
where a.id_indi =
and if (a.id_indi != @old, 'O', 'N') = 'O'
1146 : SELECT
a.id_indi
,b.nom
,b.prenom1
,b.prenom2
,b.prenom3
,b.sexe
,b.profession
,b.date_naiss
,b.lieu_naiss
,b.dept_naiss
,b.date_deces
,b.lieu_deces
,b.dept_deces
,a.id_parent
,b.sosa_dyn
,a.id_conj
,a.date_maria
,a.lieu_maria
,a.dept_maria
,c.nom
,c.prenom1
,c.prenom2
,c.prenom3
,c.sexe
,c.sosa_dyn
,b.tri
FROM got_314132214_desc_cles a
INNER JOIN got__individu b ON (a.id_indi = b.id_indi)
LEFT OUTER JOIN got__individu c ON (a.id_conj = c.id_indi)
|
|
|
| 1064 :
SELECT *
FROM got__individu
WHERE id_indi =
|
1064 : SELECT note_evene
FROM got__evenement
WHERE type_evene = "FILE"
and id_indi =
|
|
| 1064 :
SELECT b.id_indi,b.nom,b.prenom1,b.TRI,b.lieu_naiss,b.sosa_dyn,b.sexe,b.profession,b.date_naiss,a.date_naiss,b.prenom2,b.prenom3,b.date_naiss,b.dept_naiss,b.date_deces,b.lieu_deces,b.dept_deces
FROM got__individu a
LEFT OUTER JOIN got__individu b ON (a.id_pere = b.id_indi)
WHERE a.id_indi =
UNION ALL
SELECT b.id_indi,b.nom,b.prenom1,b.TRI,b.lieu_naiss,b.sosa_dyn,b.sexe,b.profession,b.date_naiss,a.date_naiss,b.prenom2,b.prenom3,b.date_naiss,b.dept_naiss,b.date_deces,b.lieu_deces,b.dept_deces
FROM got__individu a
LEFT OUTER JOIN got__individu b ON (a.id_mere = b.id_indi)
WHERE a.id_indi =
|
Parents |
1064 :
SELECT c.id_indi, c.nom, c.prenom1, a.anne_evene, c.lieu_naiss, c.sosa_dyn, c.sexe, c.profession, b.date_naiss, a.date_evene, c.prenom2, c.prenom3,c.date_naiss,c.dept_naiss,c.date_deces,c.lieu_deces,c.dept_deces
FROM got__evenement a
INNER JOIN got__individu b ON (a.id_wife
= b.id_indi)
LEFT OUTER JOIN got__individu c ON (a.id_husb = c.id_indi)
WHERE a.type_evene IN ("MARR")
AND a.id_wife =
ORDER BY 4
1146 :
SELECT b.id_indi,b.nom,b.prenom1,b.TRI,b.lieu_naiss,b.sosa_dyn,b.sexe,b.profession,a.date_naiss,b.date_naiss,b.prenom2,b.prenom3,b.date_naiss,b.dept_naiss,b.date_deces,b.lieu_deces,b.dept_deces
FROM got__individu a
INNER JOIN got__individu b ON (a.id_indi = b.id_mere) WHERE a.id_indi = ""
ORDER BY b.tri 1064 : SELECT b.id_indi,b.nom,b.prenom1,b.TRI,b.lieu_naiss,b.sosa_dyn,b.sexe,b.profession,b.date_naiss,a.date_naiss,b.prenom2,b.prenom3,b.date_naiss,b.dept_naiss,b.date_deces,b.lieu_deces,b.dept_deces
FROM got__individu a
INNER JOIN got__individu b ON ( a.id_pere = b.id_pere AND a.id_indi != b.id_indi AND a.id_pere != 0)
WHERE a.id_indi =
UNION
SELECT b.id_indi,b.nom,b.prenom1,b.TRI,b.lieu_naiss,b.sosa_dyn,b.sexe,b.profession,b.date_naiss,a.date_naiss,b.prenom2,b.prenom3,b.date_naiss,b.dept_naiss,b.date_deces,b.lieu_deces,b.dept_deces
FROM got__individu a
INNER JOIN got__individu b ON (a.id_mere = b.id_mere AND a.id_indi != b.id_indi AND a.id_mere != 0)
WHERE a.id_indi =
ORDER BY tri
|
|
1064 :
SELECT a.type_evene,a.date_evene,a.lieu_evene,CONCAT(a.note_evene," ",IFNULL(c.note_source,"")), b.id_sour, b.type_sourc,b.attr_sourc
FROM got__evenement a
LEFT OUTER JOIN got__even_sour b ON (a.id_indi = b.id_indi and a.id_husb = b.id_husb and a.id_wife = b.id_wife
and a.type_evene = b.type_evene and a.date_evene = b.date_evene /*and a.dept_evene = b.dept_evene and a.lieu_evene = b.lieu_evene*/)
LEFT OUTER JOIN got__source c ON (b.type_sourc = "SOUR" AND b.id_sour = c.id_sour)
WHERE (a.id_indi = OR a.id_husb = OR a.id_wife = )
AND a.type_evene NOT IN ("FILE","OCCU","CHAN")
ORDER BY a.anne_evene,a.type_evene,b.type_sourc DESCSources |
|