Report: Husband is female

De TNG_Wiki
Sauter à la navigation Sauter à la recherche

Description: Marriages where the husband is female and therefore a mistake might have been made.


Copy and paste the text between the lines into the reports section below "OR Leave Display, Criteria and Sort fields blank and enter direct SQL SELECT statement here:" and give it the title you think is appropriate


SELECT f.familyID, h.personID, h.lastname AS LastName1, h.firstname 
AS FirstName1, h.sex AS Sex1, h.birthdate as birthdate1, w.personID, w.lastname 
AS LastName2, w.firstname AS FirstName2, w.sex AS Sex2, w.birthdate 
as birthdate2, f.living, f.gedcom FROM tng_families AS f 
LEFT JOIN tng_people AS h ON f.husband = h.personID 
LEFT JOIN tng_people AS w ON f.wife = w.personID WHERE ( h.sex = "F" ) 
ORDER BY familyID