* custom query

Homeless Posts from the old forum system
Locked
avatar
ianjp
Newbie
Posts: 3
Joined: 17 Feb 2004 11:35
Family Historian: None

custom query

Post by ianjp » 25 Feb 2007 15:20

I am trying to create a custom query for individuals born in Surrey before 1838. In addition to the default INDI column I am adding INDI.BIRTH DATE:YEAR and INDI.BIRTH.PLAC:MED using the condition add if and operator is less than 1838 for date and begins with SRY for place. When I run the query the results includes people born after 1838 and also those born in other counties. What am I doing wrong? I previously made a custom query for people born in Norfolk before 1900 which worked fine. When I first ran the new query I got the results for this so I deleted it.

ID:2206

avatar
PatrickT
Diamond
Posts: 86
Joined: 08 Apr 2006 13:46
Family Historian: V6.2

custom query

Post by PatrickT » 26 Feb 2007 17:15

The conditions you are applying will add everyone born before 1838, whether in Surrey or not, and to that list add everyone born in Surrey after 1838. I think you need ADD IF born in Surrey followed by EXCLUDE UNLESS born after 1838.

Patrick

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

custom query

Post by Jane » 26 Feb 2007 19:47

Patrick's suggestion looks fine.

You may find it easier to use contains SRY on the place name rather than the MED classifier, just in case of any rouge formatted place names.

avatar
ianjp
Newbie
Posts: 3
Joined: 17 Feb 2004 11:35
Family Historian: None

custom query

Post by ianjp » 27 Feb 2007 08:32

Thanks for your advice. I now have the results expected from the query.
Ian

Locked