Now that I understand your process a little better, I think I can make some suggestions that only involve RootsMagic without needing to involve SQLite.
I’ll be using examples from my own database because I’m familiar with the data. Hopefully, it will be easy to translate the examples from my data to your data. In particular, I live in Tennessee and Tennessee had a series of birth certificates and death certificates that ran from 1908 to 1912. Prior to that, there were no statewide birth or death records of any kind, although there were local records in many places. These records are all online. So time to time, I work on a project to find all the 1908 through 1912 birth and death records for anybody in my database that might match.
But let’s start with a special case. Suppose I wanted to find everyone who was born and died in Tennessee in the same year between 1908 and 1912. A search criteria that you might want try might look something like the following.
Birth > Place > Contains > Tennessee
AND
Birth > Date > Is After > 1911
AND
Birth > Date > Is Before > 1913
AND
Death > Date > Equals > Birth Date
Except that won’t work because Death > Date > Equals has to be a date like 1912 or 1913, etc. It can’t be Birth Date. So we take a different approach.
Birth > Place > Contains > Tennessee
AND
Birth > Date > Equals > 1908
AND
Death > Date > Equals > 1908
That only gets us 1908, but we could then repeat for 1909, 1910, 1911, and 1912. It’s really no extra work to do it that way. The reason for doing it this way is that it provides a way to make the Birth date and the Death date the same without comparing them directly. This isn’t the same as your need to compare information from the fact without information from the citation. But it’s a very general concept.
Now we switch to our real problem, and as I said I have actually worked on this one for a while. Let’s make two groups.
----- Group #1, born in Tennessee in 1908.
Birth > Place > Contains > Tennessee
AND
Birth > Date > Equals > 1908
----- Group #2, has a citation from the 1908 birth records
Birth > Place > Contains > Tennessee
AND
Birth > Source > Footnote Contains > 1908
I need to say a little more about Footnote Contains > 1908. That would work in my database because any other citations I might have for the same birth fact would not include the string “1908” in the footnote sentence. You may really have to look at your footnotes to see what string would work. Here are additional comments.
- Footnote Contains is really the only parameter that will give you what you want. There is no way from within RM’s search screen to get at individual fields in the definition of the citation. And the Citation Name is not a searchable field and it should be. I think that surely this is just an oversight rather than a design flaw.
- You really can’t use Footnote Does Not Contain > 1908 at this point because the Birth fact might have more than one citation and if so that clause would pick up one of the other citations.
- You can’t really can’t have two different Footnote Contains lines in the search criteria to pick up additional data for the same reason that their might be more than one citation for the birth fact and additional Footnote Contains lines might pick up one of the other citations. You can certainly do a Footnote Contains on a longer string than just my 1908, but it needs to be a single contiguous string…
We are now ready to complete the search. We make one more group.
----- Group #3, born in Tennessee in 1908 and Footnote Does Not Contain 1908
Select > Group #1
Unselect > Group #2
I emphasize that I think this is only way to do it. I really don’t think there is a way to do this without making three groups in all because there is not really a way to do a direct search for the Footnote Does Not Contain > 1908 criterion because there could be more than one citation. I emphasize that you would need to examine your footnotes and come up with a better string than my Contains >1908 that fits with your data. I emphasize that you have to do one year at a time for the reasons stated above.
Make sure the groups involved are all Rules Groups and not Simple Groups.
I have tested this in my database with my data and it works. You will simply have to adapt it to your data. The only issue that might be tricky is the string to use with Footnote Contains.
Sometimes with this kind of search, a complete state such as Tennessee is too broad for what I’m trying to accomplish. If so, then I change Tennessee the search string to something like Jefferson County, Tennessee.