Report: Days between death and burial

From TNG_Wiki
Jump to navigation Jump to search

Description: Days between death and burial, actually this was my effort to prove that most people die near their birth date. In my database with 400.000 people that was certainly true.


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 personID, lastname, firstname, deathdate, burialdate, TO_DAYS(burialdatetr)-TO_DAYS(deathdatetr) 
AS Number_of_Days, gedcom FROM tng_people WHERE deathdate<>"" AND burialdate<>"" 
AND DAYOFMONTH(deathdatetr)>0 AND DAYOFMONTH(burialdatetr)>0 
ORDER BY ABS(TO_DAYS(burialdatetr)-TO_DAYS(deathdatetr)) DESC, lastname, firstname, deathdatetr