Report: People born after they died

From TNG_Wiki
Jump to navigation Jump to search

Description: People born after they died


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, firstname, lastname, birthdate, birthdatetr, birthplace, deathdate, deathdatetr, deathplace, YEAR( deathdatetr ) - YEAR( birthdatetr ) AS Age FROM tng_people WHERE ( ( `birthdatetr` ) - ( `deathdatetr` ) >0 ) AND `birthdatetr` <>0000 -00 -00 AND `deathdatetr` <>0000 -00 -00 AND deathdate != "y" AND deathdate != "0" AND `living` = "0" AND deathdate != "n" AND deathdatetr - birthdatetr !=0