* Query for lost persons

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
kcuypers
Platinum
Posts: 45
Joined: 20 Nov 2017 03:00
Family Historian: V7
Location: Belgium

Query for lost persons

Post by kcuypers »

Hello,

I want to make a query for lost persons in my database, where no data is attach. (no witness,godparent,facts...).
Can someone help me please with this query?

Thanks

Greetings

Koenraad
User avatar
tatewise
Megastar
Posts: 28403
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Query for lost persons

Post by tatewise »

That is surprisingly difficult because it involves a Rows tab filter for EVERY possible tag including every Fact.
e.g.
Exclude unless %INDI.FAMS[1]>% is null
Exclude unless %INDI.FAMC[1]>% is null

and so on for every tag such as _SHAR, NOTE2, NOTE, REFN, BIRT, DEAT, MARR, etc, etc...

Maybe somebody else has a good idea.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
David2416
Superstar
Posts: 398
Joined: 12 Nov 2017 16:37
Family Historian: V7
Location: Suffolk UK

Re: Query for lost persons

Post by David2416 »

I wonder if looking at pool numbers would help. Would such people be in their own pool?
User avatar
PeterR
Megastar
Posts: 1135
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

Re: Query for lost persons

Post by PeterR »

A possible solution requires two queries. First run a Fact query, for all facts, with the Fact-Owner (e.g. =GetRecord()) as the only column, and select all rows in the result set and Add Selected Cell Records to Named List…. Then use an Individual query with row conditions to Add Unless… in this Named List and to Exclude unless… e.g. %INDI.~SHAR[1]>% is null.
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)
User avatar
tatewise
Megastar
Posts: 28403
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Query for lost persons

Post by tatewise »

That is a great idea, and I have discovered a Query called Non-Blank Individuals that does the inverse of the second part.
Its General tab says:
Adds every Individual from a Named List that identifies Individuals with Facts.
Adds every Individual that has Family links or is a Witness.
Use the Menu option to 'Run and Invert Result Set' to obtain blank Individuals.
So the process is as Peter says, to first run a Fact query to find all Individuals with any Facts.
Then select all the Owner cells and use Query Menu > Add Selected Cell Records to Named List….
Now run Non-Blank Individuals and select that Named List.
The Result Set will now list every non-blank Individual.
But using Query Menu > Run and Invert Result Set will list every blank Individual.

There is one caveat.
Those blank Individuals may still be the target for one of the following links from another record:
Associated Person (INDI.ASSO)
Alias (INDI.ALIA)
Attachments
Non-Blank Individuals.fhq
(2.7 KiB) Downloaded 186 times
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
avatar
kcuypers
Platinum
Posts: 45
Joined: 20 Nov 2017 03:00
Family Historian: V7
Location: Belgium

Re: Query for lost persons

Post by kcuypers »

It's working. Thanks to all

Greetings

Koenraad
Post Reply