Jump to content
TNG Community

cause of death


^maikl11

Recommended Posts

Hello everyone,
I want to make a report with a specific cause of death!
Only people should be listed who have "Fallen (in german: Gefallen)" the cause of death and where they died.
How do I do it?

I've already prepared something, but all causes of death are listed!

SELECT cause AS cause_of_death, personID, p.lastname, p.firstname, p.birthdate, p.deathdate, YEAR(p.deathdatetr)-YEAR(p.birthdatetr) AS age, p.gedcom FROM tng_events AS e
INNER JOIN tng_people AS p ON (e.persfamID=p.personID AND e.gedcom=p.gedcom)
WHERE cause<>"" AND parenttag="DEAT" AND YEAR(p.deathdatetr)<1910 ORDER BY cause_of_death, p.lastname;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...