Report: Same sex marriages

From TNG_Wiki
Jump to navigation Jump to search

Description: Same sex marriages (indiscriminative of gender)

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 1st_lastname, h.firstname AS 1st_given_name, h.birthdate as birtdate1, AS gender1, w.personID, w.lastname AS 2nd_lastname, w.firstname AS 2nd_given_name, w.birthdate as birtdate2, AS gender2,, f.gedcom FROM tng_families AS f LEFT JOIN tng_people AS h ON f.gedcom = h.gedcom AND f.husband=h.personID LEFT JOIN tng_people AS w ON f.gedcom = w.gedcom AND f.wife=w.personID WHERE ORDER BY familyID