Nyheter:
  Fornavn:  Etternavn:
Logg inn
Avansert søk
Etternavn
Hva er nytt?
Etterlysninger
  • Bilder
  • Dokumenter
  • Gravsteiner
  • Album
    Alle media
    Kirkegårder
    Steder
    Notater
    Datoer og jubileer
    Kalender
    Rapporter
    Kilder
    Arkiver
    DNA tester
    Statistikk
    Bytt Språk
    Bokmerker
    Ta kontakt
    Be om brukerkonto

    Del Skriv ut Legg til bokmerke

    Rapport: Report List and code, lijst met alle rapporten en code

             Beskrivelse: If the tree is mentioned as savenije please replace with your won tree. Als de naam van de tree=savenije vervang die door uw eigen stamboom naam


    Treff 101 til 150 av 167  » Kommaseparert CSV fil

    «Forrige 1 2 3 4 Neste»

    # reportID Rapportnavn reportdesc sqlselect active
    101 66  individuals: frequency distribution of days from birth to baptism  individuals: frequency distribution of days from birth to baptism, one = equals 10 people
    Individuen: grafiek van de verdeling van dagen tussen geboorte en doop, een = is 10 mensen 
    SELECT TO_DAYS(altbirthdatetr)-TO_DAYS(birthdatetr) AS Total_days, COUNT(*) AS Frequency, RPAD('',COUNT(*)/10,'=') AS Graph FROM tng_people WHERE altbirthdate<>"" AND birthdate<>"" AND DAYOFMONTH(altbirthdatetr)>0 AND DAYOFMONTH(birthdatetr)>0 GROUP BY Total_days ORDER BY Total_days;  
    102 121  individuals: number of days between birth and death  individuals: number of days between birthday and death
    individuen: aantal dagen tussen verjaardag en overlijden 
    SELECT personID, lastname, firstname, birthdate, deathdate, ABS(TO_DAYS(deathdatetr)-TO_DAYS(birthdatetr)) AS Number_of_days, living, gedcom FROM tng_people WHERE birthdate<>"" AND deathdate<>"" AND DAYOFMONTH(deathdatetr)>0 AND DAYOFMONTH(birthdatetr)>0 ORDER BY ABS(TO_DAYS(deathdatetr)-TO_DAYS(birthdatetr)) DESC, lastname, firstname, birthdatetr;
     
    103 242  individuals: people with nicknames, ordered on nicknames  Mensen met bijnamen of roepnamen  SELECT nickname, personID, lastname, firstname, birthdate, deathdate, living, gedcom FROM tng_people
    WHERE nickname<>"" ORDER BY nickname, lastname, firstname, personID; 
    104 240  individuals: titles with corresponding names   individuals: titles without names - occurring titles with frequency   SELECT title, COUNT( * ) AS Total
    FROM tng_people
    WHERE title <> ''
    GROUP BY title
    ORDER BY title 
    105 241  individuals: titles with corresponding names   individuals: titles with corresponding names   SELECT personID, title, lastname, firstname, birthdate, living, gedcom FROM tng_people WHERE title<>"" ORDER BY title, lastname, firstname, personID 
    106 55  indivuals ordered by ascending age  indivuals ordered by ascending age (only deceased)   SELECT lastname, firstname, personID, birthdate, birthdatetr, deathdate, deathdatetr, YEAR(deathdatetr)-YEAR(birthdatetr) AS Age, gedcom FROM tng_people WHERE (birthdatetr<>"0000-00-00") AND (deathdatetr<>"0000-00-00") ORDER BY Age, lastname, firstname  
    107 59  inviduals: birthdays in the current month  inviduals: birthdays in the current month (only deceased persons)   SELECT personID, lastname, firstname, birthdate, deathdate, YEAR(NOW())-YEAR(birthdatetr) AS Years, gedcom FROM tng_people WHERE MONTH(birthdatetr)=MONTH(NOW()) AND living=0 ORDER BY lastname, firstname, personID;  
    108 271  Length of marriage, ordered by alphabet  Lengte van een huwelijk, gesorteerd op alfabet  select
    CONCAT('<a href = \"familygroup.php?familyID=', F1.familyID, '&tree=', F1.gedcom, '\" target=\"_blank\" class=\"fam\">', F1.familyID, '</a>') as FamilyID
    ,F1.living
    ,CONCAT(P1.lastname, ', ', P1.firstname) as HusbandName
    ,CONCAT(P2.lastname, ', ', P2.firstname) as WifeName
    ,case when YEAR(F1.divdatetr) != 0
    then YEAR(F1.divdatetr)-YEAR(F1.marrdatetr)
    when YEAR(P1.deathdatetr) != 0 and YEAR(P2.deathdatetr) != 0 and YEAR(P1.deathdatetr) <= YEAR(P2.deathdatetr)
    then YEAR(P1.deathdatetr)-YEAR(F1.marrdatetr)
    when YEAR(P1.deathdatetr) != 0 and YEAR(P2.deathdatetr) != 0 and YEAR(P1.deathdatetr) > YEAR(P2.deathdatetr)
    then YEAR(P2.deathdatetr)-YEAR(F1.marrdatetr)
    else 0
    end as YearsMarried
    ,F1.marrdate
    ,F1.divdate
    ,P1.deathdate as HusbandDeathDate
    ,P2.deathdate as WifeDeathDate
    ,case when YEAR(F1.divdatetr) != 0 or (YEAR(P1.deathdatetr) != 0 and YEAR(P2.deathdatetr) != 0) then ' '
    when YEAR(P1.deathdatetr) = 0 then 'Husband death date not known'
    when YEAR(P2.deathdatetr) = 0 then 'Wife death date not known'
    end as Comment
    from
    tng_families F1
    inner join
    tng_people P1
    on F1.gedcom = P1.gedcom
    and F1.husband = P1.personID
    inner join
    tng_people P2
    on F1.gedcom = P2.gedcom
    and F1.wife = P2.personID
    where F1.marrdate != ''
    and UPPER(P1.deathdate) not like 'ABT%'
    and UPPER(P1.deathdate) not like 'AFT%'
    and UPPER(P1.deathdate) not like 'BEF%'
    and UPPER(P1.deathdate) not like 'BET%'
    and UPPER(P1.deathdate) not like 'CAL%'
    and UPPER(P1.deathdate) not like 'EST%'
    and UPPER(P2.deathdate) not like 'ABT%'
    and UPPER(P2.deathdate) not like 'AFT%'
    and UPPER(P2.deathdate) not like 'BEF%'
    and UPPER(P2.deathdate) not like 'BET%'
    and UPPER(P2.deathdate) not like 'CAL%'
    and UPPER(P2.deathdate) not like 'EST%'
    and UPPER(F1.marrdate) not like 'ABT%'
    and UPPER(F1.marrdate) not like 'AFT%'
    and UPPER(F1.marrdate) not like 'BEF%'
    and UPPER(F1.marrdate) not like 'BET%'
    and UPPER(F1.marrdate) not like 'CAL%'
    and UPPER(F1.marrdate) not like 'EST%'
    and UPPER(F1.marrdate) != 'Y'
    and UPPER(F1.divdate) not like 'ABT%'
    and UPPER(F1.divdate) not like 'AFT%'
    and UPPER(F1.divdate) not like 'BEF%'
    and UPPER(F1.divdate) not like 'BET%'
    and UPPER(F1.divdate) not like 'CAL%'
    and UPPER(F1.divdate) not like 'EST%'
    and UPPER(F1.divdate) != 'Y'
    and (F1.divdate != '' or P1.deathdate != '' or P2.deathdate != '')
    and not (YEAR(F1.divdatetr) = 0 and YEAR(P1.deathdatetr) = 0 and YEAR(P2.deathdatetr) = 0) having Comment = ''
    order by P1.lastname, YearsMarried desc, F1.marrdatetr desc
    ;  
    109 272  Length of marriage, ordered by length of marriage  Aantal jaren getrouwd, gesorteerd op aantal jaren getrouwd  select
    CONCAT('<a href = \"familygroup.php?familyID=', F1.familyID, '&tree=', F1.gedcom, '\" target=\"_blank\" class=\"fam\">', F1.familyID, '</a>') as FamilyID
    ,F1.living
    ,CONCAT(P1.lastname, ', ', P1.firstname) as HusbandName
    ,CONCAT(P2.lastname, ', ', P2.firstname) as WifeName
    ,case when YEAR(F1.divdatetr) != 0
    then YEAR(F1.divdatetr)-YEAR(F1.marrdatetr)
    when YEAR(P1.deathdatetr) != 0 and YEAR(P2.deathdatetr) != 0 and YEAR(P1.deathdatetr) <= YEAR(P2.deathdatetr)
    then YEAR(P1.deathdatetr)-YEAR(F1.marrdatetr)
    when YEAR(P1.deathdatetr) != 0 and YEAR(P2.deathdatetr) != 0 and YEAR(P1.deathdatetr) > YEAR(P2.deathdatetr)
    then YEAR(P2.deathdatetr)-YEAR(F1.marrdatetr)
    else 0
    end as YearsMarried
    ,F1.marrdate
    ,F1.divdate
    ,P1.deathdate as HusbandDeathDate
    ,P2.deathdate as WifeDeathDate
    ,case when YEAR(F1.divdatetr) != 0 or (YEAR(P1.deathdatetr) != 0 and YEAR(P2.deathdatetr) != 0) then ' '
    when YEAR(P1.deathdatetr) = 0 then 'Husband death date not known'
    when YEAR(P2.deathdatetr) = 0 then 'Wife death date not known'
    end as Comment
    from
    tng_families F1
    inner join
    tng_people P1
    on F1.gedcom = P1.gedcom
    and F1.husband = P1.personID
    inner join
    tng_people P2
    on F1.gedcom = P2.gedcom
    and F1.wife = P2.personID
    where F1.marrdate != ''
    and UPPER(P1.deathdate) not like 'ABT%'
    and UPPER(P1.deathdate) not like 'AFT%'
    and UPPER(P1.deathdate) not like 'BEF%'
    and UPPER(P1.deathdate) not like 'BET%'
    and UPPER(P1.deathdate) not like 'CAL%'
    and UPPER(P1.deathdate) not like 'EST%'
    and UPPER(P2.deathdate) not like 'ABT%'
    and UPPER(P2.deathdate) not like 'AFT%'
    and UPPER(P2.deathdate) not like 'BEF%'
    and UPPER(P2.deathdate) not like 'BET%'
    and UPPER(P2.deathdate) not like 'CAL%'
    and UPPER(P2.deathdate) not like 'EST%'
    and UPPER(F1.marrdate) not like 'ABT%'
    and UPPER(F1.marrdate) not like 'AFT%'
    and UPPER(F1.marrdate) not like 'BEF%'
    and UPPER(F1.marrdate) not like 'BET%'
    and UPPER(F1.marrdate) not like 'CAL%'
    and UPPER(F1.marrdate) not like 'EST%'
    and UPPER(F1.marrdate) != 'Y'
    and UPPER(F1.divdate) not like 'ABT%'
    and UPPER(F1.divdate) not like 'AFT%'
    and UPPER(F1.divdate) not like 'BEF%'
    and UPPER(F1.divdate) not like 'BET%'
    and UPPER(F1.divdate) not like 'CAL%'
    and UPPER(F1.divdate) not like 'EST%'
    and UPPER(F1.divdate) != 'Y'
    and (F1.divdate != '' or P1.deathdate != '' or P2.deathdate != '')
    and not (YEAR(F1.divdatetr) = 0 and YEAR(P1.deathdatetr) = 0 and YEAR(P2.deathdatetr) = 0) having Comment = ''
    order by YearsMarried desc, P1.lastname, F1.marrdatetr desc
    ;  
    110 142  Levende personen  Je moet ingelogd zijn om hier iets nuttigs te zien  SELECT tng_people.living, firstname, lastname, birthdate, deathdate, tng_people.personID, tng_people.gedcom, nameorder FROM (tng_people ) WHERE (tng_people.living = 1) ORDER BY firstname 
    111 140  Levende Savenije's  Je moet ingelogd zijn om hier iets te zien  SELECT tng_people.living, firstname, lastname, tng_people.personID, tng_people.gedcom, nameorder FROM (tng_people ) WHERE (tng_people.living = 1 AND lastname like "sav%n%") ORDER BY firstname 
    112 226  List eventypes  List even types with eventypeID  SELECT eventtypeID, tag, description, display, keep, ordernum, type
    FROM `tng_eventtypes`
    ORDER BY `eventtypeID` ASC 
    113 233  List of men who were eligable to fight in the papal wars  Lijst van mensen die eventueel als Zouaaf tegen Garibaldi gevochten zouden kunnen hebben  SELECT p.personID, p.lastname, p.firstname, p.birthplace, et.description AS Conflict, 1861 - YEAR( p.birthdatetr ) AS age_at_beginning_of_papal_wars, e.eventdate AS Event_Date, e.eventplace AS Event, p.birthdate, p.deathdate, p.living FROM tng_people AS p LEFT OUTER JOIN tng_events AS e ON ( p.personID = e.persfamID AND p.gedcom = e.gedcom ) LEFT OUTER JOIN tng_eventtypes AS et ON e.eventtypeID = et.eventtypeID WHERE birthdatetr <>0000 -00 -00 AND ( 1861 - YEAR( birthdatetr ) >=18 ) AND ( 1861 - YEAR( birthdatetr ) <=40 ) AND YEAR( deathdatetr ) >1861 AND sex = "M" AND ( birthdate NOT LIKE "Aft%" ) AND Length(p.firstname) >10 and (p.firstname like "%es %" or p.firstname like "%us %" or p.firstname like "%as%") AND (p.birthplace like "%Groningen" or birthplace like "%Drenthe")
    AND
    ( ( ( et.tag = "EVEN" AND description LIKE "Mili%" ) OR ( et.tag = "EVEN" AND et.description = "Civil War" ) OR ( et.tag = "EVEN" AND et.description LIKE "Revolutionary%" ) OR ( et.tag = "EVEN" AND et.description LIKE "WWI%" ) OR ( et.tag = "EVEN" AND et.description LIKE "Vietnam%" ) OR ( et.tag = "EVEN" AND et.description LIKE "Korean%" ) OR ( et.tag = "EVEN" AND et.description LIKE "War of 1812%" ) ) OR et.tag IS NULL ) ORDER BY p.lastname, p.firstname, p.personID, age_at_beginning_of_papal_wars 
    114 176  Media not associated with a tree  Media die niet aan een boom vastzit  SELECT mediaID AS MediaNr, description, mediatypeID AS Media_type FROM tng_media WHERE gedcom="" OR ISNULL(gedcom) ORDER BY description; 
    115 174  Media overview by media type  Media overzicht per media type.   SELECT mediatypeID AS MediaType, mediaID AS MediaNr, description, gedcom FROM tng_media ORDER BY mediatypeID, description;  
    116 173  Media statistics  Media statistieken  SELECT mediatypeID AS Media_Type, COUNT(*) AS Number FROM tng_media GROUP BY mediatypeID
    UNION
    SELECT "Total" AS Media_Type, COUNT(*) AS Number FROM tng_media; 
    117 182  Media which are *not* set as "default photo"  Media die NIET als standaard foto zijn aangevinked  SELECT description, mediatypeID AS Media_type, p.personID, p.lastname, p.firstname, p.living, p.gedcom FROM tng_media AS m
    LEFT JOIN tng_medialinks AS ml ON (ml.mediaID=m.mediaID AND ml.gedcom=m.gedcom)
    LEFT JOIN tng_people AS p ON (ml.personID=p.personID AND ml.gedcom=p.gedcom)
    WHERE defphoto<>1
    ORDER BY description;  
    118 175  Media which are always visible  Media having the "always on" tag activated

    Media die als "Altijd zichtbaar" zijn gemarkeerd 
    SELECT description, mediatypeID AS Mediia_type, p.personID, p.lastname, p.firstname, p.living, p.gedcom FROM tng_media AS m
    LEFT JOIN tng_medialinks AS ml ON (ml.mediaID=m.mediaID AND ml.gedcom=m.gedcom)
    LEFT JOIN tng_people AS p ON (ml.personID=p.personID AND ml.gedcom=p.gedcom)
    WHERE alwayson<>0
    ORDER BY description;  
    119 181  Media which are set as "default photo"  Media die als standaard foto zijn aangevinked  SELECT description, mediatypeID AS Media_type, p.personID, p.lastname, p.firstname, p.living, p.gedcom FROM tng_media AS m
    LEFT JOIN tng_medialinks AS ml ON (ml.mediaID=m.mediaID AND ml.gedcom=m.gedcom)
    LEFT JOIN tng_people AS p ON (ml.personID=p.personID AND ml.gedcom=p.gedcom)
    WHERE defphoto=1
    ORDER BY description;  
    120 180  Media with associated people, *with* having media linked to an event  Media with associated people, *with* having media linked to an event

    Media met eraan gelinkte mensen MET media gelinked aan een gebeurtenis
     
    SELECT description, mediatypeID AS Media_type, p.personID, p.lastname, p.firstname, p.living, p.gedcom FROM tng_media AS m
    LEFT JOIN tng_medialinks AS ml ON (ml.mediaID=m.mediaID AND ml.gedcom=m.gedcom)
    LEFT JOIN tng_people AS p ON (ml.personID=p.personID AND ml.gedcom=p.gedcom)
    WHERE eventID<>""
    ORDER BY description;  
    121 179  Media with associated people, *without* having media linked to an event  Media with associated people, *without* having media linked to an event

    Media met de eraan gelinked mensen zonder dat de media aan een gebeurtenis gelinked zijn.  
    SELECT description, mediatypeID AS Media_type, p.personID, p.lastname, p.firstname, p.living, p.gedcom FROM tng_media AS m
    LEFT JOIN tng_medialinks AS ml ON (ml.mediaID=m.mediaID AND ml.gedcom=m.gedcom)
    LEFT JOIN tng_people AS p ON (ml.personID=p.personID AND ml.gedcom=p.gedcom)
    WHERE eventID=""
    ORDER BY description;  
    122 178  Media with coordinates  Media met coordinaten.   SELECT mediaID AS MediaNr, description, mediatypeID AS Media_Type, longitude, latitude, gedcom FROM tng_media WHERE longitude<>"" AND latitude<>"" AND NOT ISNULL(longitude) AND NOT ISNULL(latitude) ORDER BY description;  
    123 177  Media without coordinates  Media zonder coordinaten  SELECT mediaID, description, mediatypeID, gedcom FROM tng_media WHERE longitude="" OR latitude="" ORDER BY description;  
    124 228  Number of people originating from first level birthplace  Aantal mensen geboren in de laatste deel van de naam in een plaatsnaam, dus dorp  SELECT LTRIM(REVERSE(SUBSTRING_INDEX(REVERSE(birthplace),",",3))) as city_or_village, COUNT(*) AS Number, RPAD('',COUNT(*)/100,'=') AS Graph FROM tng_people WHERE birthplace <> "" group BY city_or_village order by Number desc; 
    125 227  Number of people originating from second level birthplace  Aantal mensen geboren in de laatste deel van de naam in een plaatsnaam, dus gemeente   SELECT LTRIM(REVERSE(SUBSTRING_INDEX(REVERSE(birthplace),",",2))) as city_or_village, COUNT(*) AS Number, RPAD('',COUNT(*)/100,'=') AS Graph FROM tng_people WHERE birthplace <> "" group BY city_or_village order by Number desc; 
    126 189  Number of people originating from third level birthplace  Aantal mensen geboren in de laatste deel van de naam in een plaatsnaam, dus provincie of land.   SELECT LTRIM(REVERSE(SUBSTRING_INDEX(REVERSE(birthplace),",",1))) as provincie_or_country, COUNT(*) AS Number, RPAD('',COUNT(*)/100,'=') AS Graph FROM tng_people WHERE birthplace <> "" group BY provincie_or_country order by Number desc; 
    127 207  Number of people with the same last and first name ordered alphabetically  Aantal mensen die dezelfde voor en last_name hebben, alphabetisch gerangschikt  SELECT lastname, firstname, COUNT(CONCAT(lastname, firstname)) AS Number FROM tng_people GROUP BY lastname, firstname HAVING COUNT(CONCAT(lastname, firstname))>1 ORDER BY lastname, firstname;  
    128 162  Orphaned families  Families with no husband and no wife
    Gezinnen met geen vader en geen mother 
    SELECT familyid, husband AS husbandPersonID, wife AS WifePersonID, marrdate, living, gedcom, changedby FROM tng_families WHERE husband="" AND wife="" ORDER BY CAST(SUBSTRING(familyID, 2) AS UNSIGNED);  
    129 183  People *with* associated media, but *without* default photo  Mensen MET plaatjes, maar zonder standaard plaatje  SELECT p.personID, p.lastname, p.firstname, p.living, p.gedcom, description, mediatypeID AS Media_type FROM tng_media AS m
    LEFT JOIN tng_medialinks AS ml ON (ml.mediaID=m.mediaID AND ml.gedcom=m.gedcom)
    LEFT JOIN tng_people AS p ON (ml.personID=p.personID AND ml.gedcom=p.gedcom)
    WHERE defphoto<>1
    ORDER BY lastname, firstname, birthdatetr;  
    130 157  People born after they died  Personen geboren nadat ze overleden zijn.   SELECT personID, firstname, lastname, birthdate, birthdatetr, birthplace, deathdate, deathdatetr, deathplace, YEAR( deathdatetr ) - YEAR( birthdatetr ) AS Age, gedcom, changedby
    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 
    131 170  People born into more families  Mensen die in meerdere gezinnen zijn geboren  SELECT p.personID, p.lastname, p.firstname, p.birthdate, p.living, COUNT(*) AS number_of_families, p.gedcom, p.changedby FROM tng_children AS ch
    LEFT JOIN tng_people AS p ON (ch.personID=p.personID AND ch.gedcom=p.gedcom)
    GROUP BY personID HAVING COUNT(*)>1 ORDER BY lastname, firstname;  
    132 237  People buried before death  Mensen die begraven zijn voordat ze zijn gestorven  SELECT personID, firstname, lastname, deathdate, deathdatetr, burialdate, burialdatetr, YEAR( burialdatetr ) - YEAR( deathdatetr ) AS difference
    FROM tng_people
    WHERE (
    burialdatetr - deathdatetr <0
    )
    AND (
    `burialdatetr` !=0000 -00 -00
    OR YEAR( burialdatetr ) !=0000
    )
    AND birthdate != ""
    AND burialdate != ""
    AND `living` = "0"
    AND burialdate != "n"
    AND burialdatetr - deathdatetr !=0 
    133 167  People ordered with the age of their parents  People ordered with the age of their parents ordered according to the age of the father

    Mensen geordend MET de leeftijd van hun ouders, gerangschikked volgens de leeftijd van de vader 
    SELECT p.personID, p.lastname, p.firstname, p.birthdate, p.living, father.personID AS FatherNr, father.birthdate AS FatherBirthdate, YEAR( p.birthdatetr ) - YEAR( father.birthdatetr ) AS Father_age, mother.personID AS MotherNr, mother.birthdate AS MotherBirthdate, YEAR( p.birthdatetr ) - YEAR( mother.birthdatetr ) AS Mother_age, p.changedby, p.gedcom
    FROM tng_children AS ch
    LEFT JOIN tng_people AS p ON ( ch.personID = p.personID
    AND ch.gedcom = p.gedcom )
    LEFT JOIN tng_families AS f ON ( ch.familyID = f.familyID
    AND ch.gedcom = f.gedcom )
    LEFT JOIN tng_people AS father ON ( father.personID = f.husband
    AND father.gedcom = f.gedcom )
    LEFT JOIN tng_people AS mother ON ( mother.personID = f.wife
    AND mother.gedcom = f.gedcom )
    WHERE p.birthdatetr <> "0000-00-00"
    AND father.birthdatetr <> "0000-00-00"
    AND mother.birthdatetr <> "0000-00-00"
    AND p.birthdate NOT LIKE "Aft%"
    ORDER BY Father_age, p.lastname, p.firstname, p.birthdatetr, p.changedby 
    134 264  People sorted on ID  Mensen gesorteerd op het ID  SELECT ID, personID, firstname, lastname, birthdate, birthplace, changedby
    FROM tng_people
    ORDER BY CAST( SUBSTRING( personID, 2 ) AS UNSIGNED )  
    135 263  People with a burial place but no headstone  Mensen met een begraafplaats maar geen grafsteen  SELECT concat('<a href="getperson.php?personID=',p.personid,'&tree=',
    p.gedcom,'">', p.firstname,' ',p.lastname) AS Name, p.burialplace
    FROM tng_people p
    WHERE p.burialplace <> ''
    AND NOT EXISTS
    (
    SELECT
    ml.personID
    FROM
    tng_medialinks ml
    WHERE
    p.personID = ml.personID AND
    p.gedcom = ml.gedcom AND
    ml.eventID = 'BURI'
    )
    ORDER BY p.burialplace 
    136 166  People with a different surname as their father  People with a different surname as their father (born after 1811)

    Mensen met een andere achternaam als hun vader (geboren na 1811) 
    SELECT p.personID, p.lastname, p.firstname, p.birthdate, p.living, p.gedcom, f.familyID, father.personID AS FatherNr, father.lastname AS Fatherlast_name, mother.personID AS MotherNr, mother.lastname AS Motherlast_name FROM tng_children AS ch LEFT JOIN tng_people AS p ON (ch.personID=p.personID AND ch.gedcom=p.gedcom) LEFT JOIN tng_families AS f ON (ch.familyID=f.familyID AND ch.gedcom=f.gedcom) LEFT JOIN tng_people AS father ON (father.personID=f.husband AND father.gedcom=f.gedcom) LEFT JOIN tng_people AS mother ON (mother.personID=f.wife AND mother.gedcom=f.gedcom)
    WHERE p.lastname<>father.lastname AND YEAR(p.birthdatetr)>"1811" ORDER BY p.lastname, p.firstname, p.birthdatetr;  
    137 206  People with non-alphabetic characters in their name  Mensen met niet alphabetische karakters in hun naam.   SELECT personID, lastname, firstname, birthdate, living, gedcom FROM tng_people WHERE
    ((lastname REGEXP "[^[:alpha:][:space:]-]")>0) OR ((firstname REGEXP "[^[:alpha:][:space:]-]")>0)
    ORDER BY lastname, firstname;  
    138 164  People with the same surname as their mother  People with a different surname as their father but the same as their mother (born after 1811, due to the Dutch system, before 1811 people used patronymics)
    Mensen met een andere last_name dan hun vader geboren na 1811 (voor 1811 gebruikte men patroniemen)maar dezelfde als hun mother 
    SELECT p.personID, p.lastname, p.firstname, p.birthdate, p.living, p.gedcom, f.familyID, father.personID AS FatherNr, father.lastname AS Fatherlast_name, mother.personID AS MotherNr, mother.lastname AS Motherlast_name FROM tng_children AS ch LEFT JOIN tng_people AS p ON (ch.personID=p.personID AND ch.gedcom=p.gedcom) LEFT JOIN tng_families AS f ON (ch.familyID=f.familyID AND ch.gedcom=f.gedcom) LEFT JOIN tng_people AS father ON (father.personID=f.husband AND father.gedcom=f.gedcom) LEFT JOIN tng_people AS mother ON (mother.personID=f.wife AND mother.gedcom=f.gedcom)
    WHERE (p.lastname=mother.lastname AND YEAR(p.birthdatetr)>"1811") AND father.lastname <> "" AND father.lastname <> mother.lastname ORDER BY p.lastname, p.firstname, p.birthdatetr;  
    139 159  People without a default image  Mensen zonder een standaard klikplaatje  SELECT lastname, firstname, personid, gedcom FROM
    (
    SELECT p.lastname, p.firstname, p.personid, p.gedcom, MAX(ml.defphoto) AS mdp,
    COUNT(ml.medialinkid) AS n
    FROM tng_people AS p, tng_medialinks AS ml, tng_media AS m
    WHERE ml.personid = p.personid AND ml.gedcom = p.gedcom and
    ml.mediaid = m.mediaid AND m.gedcom = p.gedcom AND m.mediatypeid = 'photos'
    GROUP BY p.personid
    )
    AS tmp
    WHERE n > 0 AND mdp != 1 
    140 184  People without any dates  Mensen zonder enige datums  SELECT personID, lastname, firstname, living, gedcom FROM tng_people WHERE
    ((birthdate is NULL) OR (birthdate="")) AND
    (birthdatetr="0000-00-00") AND
    ((altbirthdate is NULL) OR (altbirthdate="")) AND
    (altbirthdatetr="0000-00-00") AND
    ((deathdate is NULL) OR (deathdate="")) AND
    (deathdatetr="0000-00-00") AND
    ((burialdate is NULL) OR (burialdate="")) AND
    (burialdatetr="0000-00-00")
    ORDER BY lastname, firstname;  
    141 197  Persons whose last name is the same as the last name of their mother  Personen met dezelfde achternaam als hun moeder  SELECT p.personID, p.lastname, p.firstname, p.birthdate, p.living, p.gedcom, f.familyID, father.personID AS Father_Nr, father.lastname AS Father_lastname, mother.personID AS Mother_Nr, mother.lastname AS Mother_lastname FROM tng_children AS ch LEFT JOIN tng_people AS p ON (ch.personID=p.personID AND ch.gedcom=p.gedcom) LEFT JOIN tng_families AS f ON (ch.familyID=f.familyID AND ch.gedcom=f.gedcom) LEFT JOIN tng_people AS father ON (father.personID=f.husband AND father.gedcom=f.gedcom) LEFT JOIN tng_people AS mother ON (mother.personID=f.wife AND mother.gedcom=f.gedcom)
    WHERE p.lastname=mother.lastname ORDER BY p.lastname, p.firstname, p.birthdatetr;  
    142 199  persons whose last names are different from last name of father *and* last name  Mensen die een verschillende achternaam hebben als hun vader EN moeder  SELECT p.personID, p.lastname, p.firstname, p.birthdate, p.living, p.gedcom, father.lastname AS Last_name_father, mother.lastname AS Last_name_mother FROM tng_children AS ch LEFT JOIN tng_people AS p ON (ch.personID=p.personID AND ch.gedcom=p.gedcom) LEFT JOIN tng_families AS f ON (ch.familyID=f.familyID AND ch.gedcom=f.gedcom) LEFT JOIN tng_people AS father ON (father.personID=f.husband AND father.gedcom=f.gedcom) LEFT JOIN tng_people AS mother ON (mother.personID=f.wife AND mother.gedcom=f.gedcom)
    WHERE p.lastname<>father.lastname AND p.lastname<>mother.lastname ORDER BY p.lastname, p.firstname, p.birthdatetr;  
    143 38  Photos changed within the last 90 days  Photos changed within the last 90 days (listing *with* linked individuals)   SELECT description, m.notes, m.changedate, p.personID, p.gedcom, p.lastname, p.firstname, p.living, p.gedcom FROM tng_media AS m
    LEFT JOIN tng_medialinks AS ml ON (ml.mediaID=m.mediaID AND ml.gedcom=ml.gedcom)
    LEFT JOIN tng_people AS p ON (ml.personID=p.personID AND ml.gedcom=p.gedcom)
    WHERE mediatypeID<>"headstones" AND DATE_SUB(CURDATE(),INTERVAL 90 DAY)<=m.changedate
    ORDER BY m.changedate DESC;  
    144 203  Placenames in the Netherlands without maps  Plaatsnamen in Nederland waaraan nog geen oude kaart is verbonden  SELECT place, pl.gedcom
    FROM tng_places AS pl
    LEFT JOIN tng_medialinks AS p ON ( p.personID = pl.place
    AND p.gedcom = pl.gedcom )
    WHERE ISNULL( personID )
    AND (
    personID LIKE "%, Noord-Brabant"
    OR place LIKE "%, Zeeland"
    OR place LIKE "%, Limburg"
    OR place LIKE "%, Noord-Holland"
    OR place LIKE "%, Zuid-Holland"
    OR place LIKE "%, Utrecht"
    OR place LIKE "%, Gelderland"
    OR place LIKE "%, Overijssel"
    OR place LIKE "%, Drenthe"
    OR place LIKE "%, Friesland"
    OR place LIKE "%, Groningen"
    ); 
    145 131  Places ordered by the last entered  Plaatsnamen georderend volgens de laatst toegevoegde  SELECT place,longitude,latitude, notes, ID FROM tng_places
    ORDER BY ID DESC; 
    146 257  Places sorted from biggest entity to smallest    SELECT place
    FROM tng_places
    ORDER BY
    CASE WHEN LOCATE( ',', place ) =0
    THEN place
    ELSE TRIM( SUBSTRING_INDEX( place, ',', -1 ) )
    END ,
    CASE WHEN LOCATE( ',', place ) =0
    THEN ' '
    ELSE TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -2 ) , ',', 1 ) )
    END ,
    CASE WHEN TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -2 ) , ',', 1 ) ) = TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -3 ) , ',', 1 ) )
    THEN ' '
    ELSE TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -3 ) , ',', 1 ) )
    END ,
    CASE WHEN TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -3 ) , ',', 1 ) ) = TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -4 ) , ',', 1 ) )
    THEN ' '
    ELSE TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -4 ) , ',', 1 ) )
    END ,
    CASE WHEN TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -4 ) , ',', 1 ) ) = TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -5 ) , ',', 1 ) )
    THEN ' '
    ELSE TRIM( SUBSTRING_INDEX( SUBSTRING_INDEX( place, ',', -5 ) , ',', 1 ) )
    End 
    147 154  Places with an empty description but with coordinates  Plaatsnamen zonder een beschrijving, maar met coordinaten  SELECT place, longitude, latitude, zoom, placelevel, notes
    FROM `tng_places`
    WHERE (
    notes = ""
    OR notes is NULL
    )
    AND (
    Longitude <> ""
    AND latitude <> ""
    148 126  Places without coordinates    SELECT place,longitude,latitude, notes FROM tng_places WHERE longitude = "" OR latitude="" OR longitude is null OR latitude is null ORDER BY place; 
    149 273  Report List and code, lijst met alle rapporten en code  If the tree is mentioned as savenije please replace with your won tree. Als de naam van de tree=savenije vervang die door uw eigen stamboom naam  SELECT reportID, reportname, reportdesc, REPLACE(REPLACE(sqlselect, '<', X'266C743B'), '>', X'2667743B') AS sqlselect, active FROM tng_reports WHERE sqlselect<>"" AND active="1" ORDER by reportname;  
    150 160  Show private notes  Toon privé notities  SELECT personID, lastname, firstname, birthdate, deathdate, living, note,
    p.gedcom FROM tng_people AS p
    INNER JOIN tng_notelinks AS nl ON (p.personID=nl.persfamID AND
    p.gedcom=nl.gedcom)
    INNER JOIN tng_xnotes AS xn ON (nl.xnoteID=xn.ID AND nl.gedcom=xn.gedcom)
    WHERE nl.secret<>0
    ORDER BY lastname, firstname, birthdatetr; 


    «Forrige 1 2 3 4 Neste»