Problem with queries on name parts
Posted: 08 May 2008 10:15
Posting this to check if I am doing something wrong or expecting FH to work logically, or if it's FH that has a bug. I suspect the latter.
I'm doing a query which in common garden format used by every other system in the world would be something like
'surname is Axtell AND marriage date is NOT null AND spouse's given name is null'.
This is to get a list of all the spouses of an Axtell whose first name I haven't recorded as I haven't cross-checked the marriage index entries. I've gone through my Axtell marriages and only recorded the spouse's surname (where available) on my first pass.
I've tried the following query
This should build a list of Axtells, then remove all those who didn't marry, and then remove all those whose spouse's given name is not empty. However it doesn't work and produces a list where the spouse's name is not known at all. Note that I asked for the GIVEN name of the spouse to be null, not the whole name.
After a couple of hours of frustrating trial and error because of FH's idiosyncratic query syntax I managed to get the result I wanted with the last line of the query being. Not a straightforward way of getting the result I wanted, and only possible because I understand the Gedcom format and it depended on the fact that a name with no given name and only the surname starts with the '/' character and no given name ever uses the '/' character.
So, should querying if a given name is empty only work if the whole name is null or if only the given name is null?
ID:2881
I'm doing a query which in common garden format used by every other system in the world would be something like
'surname is Axtell AND marriage date is NOT null AND spouse's given name is null'.
This is to get a list of all the spouses of an Axtell whose first name I haven't recorded as I haven't cross-checked the marriage index entries. I've gone through my Axtell marriages and only recorded the spouse's surname (where available) on my first pass.
I've tried the following query
Code: Select all
Add if %INDI.NAME[1]:SURNAME% matchs 'axtell'
Exclude if %INDI.FAMS>MARR.DATE% is null
Exclude unless %INDI.~SPOU[1]>NAME[1]:GIVEN% is nullAfter a couple of hours of frustrating trial and error because of FH's idiosyncratic query syntax I managed to get the result I wanted with the last line of the query being
Code: Select all
Exclude unless %INDI.~SPOU[1]>NAME[1]:STORED% begins with '/'So, should querying if a given name is empty only work if the whole name is null or if only the given name is null?
ID:2881