Report: Husband is female

From TNG_Wiki
Jump to navigation Jump to search

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, AS Sex1, h.birthdate as birthdate1, w.personID, w.lastname 
AS LastName2, w.firstname AS FirstName2, AS Sex2, w.birthdate 
as birthdate2,, 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 ( = "F" )