Query Menu

Wikispaces lacked the Category feature of WordPress. This was an attempt, not updated since 2012, to provide a categorised list of pages and scripts and was the basis for the menu structure in RMtrix and the Categories used on this WordPress site. (Tom Holden 2019-01-26)

Addresses | Correspondence | Database | Edit | Facts | Fact Types | File | Functions | Groups | Media | People | Places | Reports | Repositories | Research | Search | Sources | To-Do | Tools

This page lists the tools sorted by category. Another way of finding any pages, not just query pages, is by the tag cloud at Find Pages by Tag. To view the most recent tools, have a look at RM SQLite Queries which is sorted by Date Added.

SubMenu1SubMenu2DescriptionPageQuery NameDate AddedRMtrix


Blank NamesList Persons with Blank Names in the Address List — (a fault that may occur in a GEDCOM import).Four Little Queriesblankname_in_addresslist2009-12-30Y
How usedLists all addresses in AddressTable and reports how they are used.Addresses – How UsedAddressesHowUsed2012-08-17Y



Copy without PeopleMakes an empty Master from current database, preserving custom fact types and source templates, Places, Master Sources and associated Repositories and Addresses, and Place/Source MediaDepopulate but keep Customs, Places, SourcesCustomDatabaseShell2011-12-10
Copy to vanilla DB3Clones a RM4/5 database without the RMNOCASE collation so that we’re free to do what we want to the data. Even works with RM but it might trip up on non-English alphabets.Convert Database to NOCASERM#_CREATE_as_DB3_NOCASE | RM#_Copy_Data_to_DB3_NOCASE2011-12-09
Database tools…
Integrity checkExplains why an integrity check is needed and how, using PRAGMA quick_check.Check RootsMagic Database IntegrityCheck RootsMagic Database Integrity2010-05-27
Integrity checkPRAGMA integrity_check(integer);Y
ReindexREINDEX. N.B., for as long as a fake RMNOCASE collation is used, this REINDEX is needed for external operations on the database and must be followed by RM’s Rebuild Indexes on returning to work the database with RM.Y
Update Birth and Death YearsSets Birth and Death years as seen in the sidebar index and various other reports and displays to match the corresponding facts. NOT for use on RM4; requires RM5+ Rebuild Indexes after completion.Rebuild Indexes and Update Birth and Death YearsUpdateBirthDeathYears2012-11-14Y
CleanDeletes unused rows from tables as reported by RMGC_Properties. May need checkbox options to select what tables are cleaned. RM4 & 5 are differentTBD
CleanDeletes citations of non-existent Sources from database that manifest themselves in the Edit Persons screen as a citation (counted and checkmarked) but return nothing when opened.Delete Phantom Citations – QueryDelete Phantom Citations2010-01-30
CleanDelete PhantomsCleans out unused records from most tables, including phantom citations. Follow by RM Rebuild Indexes and Compact.Delete PhantomsDeletePhantoms2012-10-27Y
ImportAncestry.com and FTMProcedures involving Excel, text editor and SQLite queries to bring Ancestry hyperlinks, citations and images into RootsMagic that are otherwise lost on a straight GEDCOM import.Ancestry.com and RootsMagic 5MergeAncestryURLsToFTM
Shrinking Verbose Master Sources from Ancestry.com
Exportpossible route to a control of Fact settings for GEDCOM exportTBD
Backup database
Backup database + media to RARBacks up the database file along with all the media files referenced by it to one file. Uses the command versions of SQLite3 (free), WinRAR ($fee) and 7-Zip (free). The 7-Zip version produces a .rmgb file that RootsMagic can restore, media and database.Backup Media with Database – RARRMfullbackup.bat2011-02-02
Backup database + media to ZIPBacks up the database file along with all the media files referenced by it to one file. Uses the command versions of SQLite3 (free), WinRAR ($fee) and 7-Zip (free). The 7-Zip version produces a .rmgb file that RootsMagic can restore, media and database.Backup Media with Database – 7ZipRMfullbackup.bat2011-02-02
Properties-BasicReports in a list most of the values found in RM4’s File > Properties report; results can be exported to a file.Database Properties List – QueryDatabase Properties2010-01-29Y
Properties-ExtendedAs ‘Database Properties’ but with more detail and pointing out possible problem areasRMGC_Properties – QueryRMGC_Properties2010-01-31Y
Properties-Count rows in tablesLists count of rows in each table — If not 22 tables listed, database has corruptionRMGC Tables Row CountRMGC_TablesRowCount2010-05-26
Corrupt Database RecoveryAn outline of procedures that have been used with some success to recover a corrupted RootsMagic database.Corrupt Database RecoveryCorrupt Database Recovery2012-03-10
People View ErrorAn outline of procedures that have been used when People View throws error message “SQLite Error 1 – at most 64 tables in a join”.People View Error – at most 64 tables in a JoinPeople View Error2012-03-19


PersonBirth YearLists Individuals whose Birth Year from NameTable does not match that of the date for their Birth fact.Birth Year Mis-MatchBirthYearMisMatch2010-01-17Y
PersonDeath YearLists Individuals whose Death Year from NameTable does not match that of the date for their Death fact.Death Year MismatchDeathYearMismatch2010-06-04Y
PersonLast EditedQueries to list and set Edit Dates.Date Last EditedUnnamed2013-01-25
PersonSet LivingAnother version of a Set Living query.Another version of a Set Living querySetLivingFlag2011-07-04
PersonSet LivingA discussion of queries that can modify the Living flag.Set Living FlagSetLivingFlag2011-07-02
PersonSame day sort orderRe-orders all same day events of limited types to a natural order, e.g., Birth before DeathDates – Same Day Sort OrderSortDateSameDayOrder | SortDateSameDayOrderCustom2011-12-19Y
PersonCopy fact to groupCopies a fact/event for a person to a Named Group of persons, along with the Sources but not the Media for the Fact.Copy Fact to GroupCopyFact2Group2011-04-05
PersonCopy RIN to REFNVariant of CopyFact2Group that copies a REFN fact to a group, substituting the target persons’ PersonID’s or RIN for that of the source person.Copy RIN to REFNCopyRINtoREFN2011-06-29
PersonConvert sharable factsList and convert events having key properties in common to shared events. Especially useful on imports from Legacy Family Tree in which events were copied to multiple persons.Sharable Events – Find and Convert to SharedSharableFacts2 | SharableEvents-Convert2011-12-12Y


Names – Add MarriedInserts an Alternate Name of type “Married” for female “Wife” spouses in a “Family” where no Alternate Surname matches the male “Husband’s” and a (family) Marriage fact exists.Names – Add MarriedName-Add_Married2012-11-26Y
Add Marriage to Couples WithoutAdds a Marriage event to any couple (family) in a database that does not have this fact already.Event – Add Marriage to Couples WithoutEvent-Add_Marriage2013-01-16
MergeDiscussion of techniques used to copy Description from one type of event to another and the beginning of a more complex merging of near duplicate eventsEvents – MergeUnnamed2013-02-13
Non-Privatized SSNsFinds SSN facts that have not been set to Private.WebTrees Website – Pre-Processing Tools using SQLite in Visual Basic et alRMSanity.exe2012-02-06
Shared Events with missing witnessesA fact may show that it is shared with someone whose name is missing. This query lists such facts with the names of the principals and the RINs of the missing witnesses.Shared Events With Missing WitnessesTraceHeadlessWitnesses2011-12-10Y
Sort Order ProblemsConecptual discussion and scripts to find undated or same date events that are reported by RM in an unnatural order.Facts – Sort Order ProblemsFactOrderTable, SortOrderProblems2013-01-07
Split SharedConvert shared events to individual events for compatibility on export to 3rd party software. Split | Unshare | Undo | Hide TracksFacts – Split Shared to IndividualFacts-SplitSharedToIndiv | Facts-Unshare |Facts-Split-Undo | Facts-Split-HideTracks2012-12-19Y

Fact Types

View current outputs;
Set all to GEDCOM;
Snapshot current;
View snapshot outputs;
Restore from snapshot;
Delete snapshot
Lists the Include settings for all fact types.

Sets all fact types to be included in GEDCOM and drag’n’drop.

Stores a snapshot of all settings for fact types in an extra table in the database.

Lists the include settings stored in the snapshot.

Restores all settings for fact types from the snapshot.

Deletes the extra table storing the snapshot from the database.

Fact Inclusion Controls2012-03-12Y


OpenOpen Windows Explorer browser on *.rmgc files.Y
Open Recent
Search for Files


Decodes most of the possible formats found in RM4 Date fields of the form Da+nnnnnnnn.x+nnnnnnnn.xDate DecoderDateDecoder2010-01-21
For encoding to SortDates, dates with optional RM modifiers and decoding same.Dates – SortDate AlgorithmSortDateDecodeDev2012-11-03


Top page for a collection of queries for refreshing Named GroupsNamed Group RefreshRefresh – various2011-11-26
AncestorsProvides a manual refresh for a specific Named Group, i.e., the ancestors of a specified person.Ancestors Named GroupAncestorsGroup2011-11-23
Ancestors + Collateral LinesThe RMSplit C# program below allows you to create a group in RootsMagic5 which contains a selected person, their ancestors, and a selected number of “leaves” (collateral lines us a given depth).SplitTreeRmsplit2011-01-03
Census neededBuilds or refreshes a group of persons whose lifetime probably spanned a user-defined Census Year and who had some event in the user-defined jurisdiction but not a Census fact for that year.Census Needed – Named GroupCensusNeededGroup | CensusNeededGroup22011-11-26
Mark/Unmark ListsMarks or Unmarks members of a group according to a list; equivalent to memorising the checkboxes in RootsMagic Explorer for re-use.Named Group – Mark or Unmark List refreshGroup Unmark List Refresh | Group Mark List Refresh2011-11-27


Compare and AttachCompares RM MultiMedia report to contents of a folder for review and generates a GEDCOM which on import attaches all unlinked items to the Media Gallery. Excel workbook, not SQLIte.Media Comparison & Attach UtilityRM-Import-Unlinked-Media2013-01-19
Copy from Shared Facts to Sharee PersonalGenerates Personal mediatags from shared events’ media for non-Principal sharees.MediaTags – Copy Shared Facts Media To Sharee PersonalMediaTags-CopySharedFactsMediaToShareePersonal2012-12-27Y
Delete Personal having Fact DuplicatesDeletes media tags from Person where a duplicate exists in a fact.MediaTags – Delete Personal Having Fact DuplicatesMediaTags-DeletePersonalHavingFactDupes2012-12-28Y
Delete UnusedDeletes records from MultiMediaTable not tagged by any Person, Family, Fact, Place, Source or Citation.Media – Delete UnusedMediaDeleteUnused2013-01-21Y
DuplicatesSeries of queries to list duplicate media file names in the Media Gallery and list duplicate links to items in the Gallery. Repairs a specific case of duplicate file names as an example; repairs all cases of duplicate links.Media Repair QueriesMediaRepair2010-12-14
List usesComplete listing of all users of media in the Gallery, more complete and navigable than what is provided in RM Users List QueryMedia Users List2011-11-09Y
Files usageLists files under the RM Multimedia default folder and flags those used by the RM database; helps to ensure that files are used.Scrapbook Files StatusScrapBookFilesStatus2011-03-13
Update Media PathsA SQLite equivalent to RootsMagic’s own Search & Replace function on “Multimedia filenames” in the “Field to search” selection but with no programming constraintsUpdate Media PathsUpdate Media Paths2012-01-11
Missing MediaLists those image files that have not been opened by RM, hence nothing in the thumbnail field. With comments leading to other references.Missing Media2012-01-15
Preserve Captions et al from RM4 to RM5This series of queries and related Windows commands revises a RM4 database and makes copies of the multiply-linked files so that the update to RM5 will preserve all the metadata.Media – Preserve Captions et al from RM4 to RM5RM4-MultiLinkedMediaDuplicationPreRM52012-01-31
Sync Image File MetadataCompare EXIF, IPTC, XMP metadata stored in image files to the Caption, Description and other metadata stored in a RootsMagic 5 database for image files linked to its Media Gallery and copy between the files and the database.Media Metadata, Read, Write, Compare with PicasaRM5comparePicasa.bat
Broken Links; Unused Items; Duplicate ItemsFinds broken media links using an extension in Visual Basic.
Finds media items in the Media Gallery that are not tagged to anything in the database.
Finds media items that have been attached more than once to the Media Gallery
WebTrees Website – Pre-Processing Tools using SQLite in Visual Basic et alRMSanity.exe2012-02-06
Media Type ResetSets the Media Type value for each media file to one of the four types: Image, File, Sound, Video, according to the file extension.Media Type ResetMediaTypeReset2012-12-04Y


MergeFast Duplicate Name SearchLists duplicate name pairs with a weighted score indicating degree of match. On a large database, produces results in 4.5 minutes similar to what RootsMagic 4’s Duplicate Search Merge tool does in 45 min.Duplicate Name Search – queryDuplicateNameSearch2010-02-23Y
MergeMark unmerged not a problemCopies all unmerged pairs from the results of RM4’s Duplicate Search Merge Tool to RM4’s ExclusionTable so that they will not reappear in subsequent runs of Duplicate Search Merge.Duplicate Search Merge DatabaseMarkNotProblem2010-02-21
Delete ManyDelete by Color Code

Delete by Named Group

Delete all people color-coded RED (or other color by editing the query). Follow with Delete Phantoms.

Delete all people belonging to a Named Group (edit the query to the group ID). Follow with Delete Phantoms.

Delete Many DeleteByColorCode


Phantom Spouses – Unnamed & childlessList or delete phantom spouses (PersonID=0 in FamilyTable and childless) as from Ancestry.com via FTM2012.Phantom Spouses – Unnamed and childlessUnnamed2013-03-14


County CheckThere are four Internet sites that RM5’s County Check is set to call for maps and other information.County Check2011-12-10
Unused PlacesList of unused PlacesFour Little QueriesUnusedPlaces2009-12-30Y
Place DetailsLists Places having Place DetailsFour Little QueriesPlacesDetails2009-12-30Y
Place Details with FactsReturns all Places with Place Details and the Persons or Families (couples) and their Facts, including Shared events, using the Place Detail.Facts Having Place Details – QueryFactsHavingPlaceDetails32010-01-16
Place Details without a PlaceOne query lists all Place Detail rows from PlaceTable for which there is no master Place. Another deletes such rows.Place Details without a Place Place Details without a Place2012-01-30Y
Convert to Place DetailsCombo of SQLite queries and RM4 edits of Place List beats having to edit every fact/event to split a Place into Place and Place detail; otherwise, wait for the RootsMagician!Places to Place Details ConversionPlaces to Place Details Conversion2011-11-16
Convert Place + Place Detail to PlaceThe opposite direction is much easier. Needed for export to GEDCOM for third party apps that do not support Place Detail.Convert Place + Place Detail to PlaceConvert Place + Place Detail to Place2012-01-22
Frequency of UseLists total number of events and the maximum user of each place.Places – Frequency of UsePlace_Frequency2013-03-25
Orphaned Place DetailsFinds Place Details that have no owner Place.WebTrees Website – Pre-Processing Tools using SQLite in Visual Basic et alRMSanity.exe2012-02-06
Parse and Recombine NamesCollection of queries to parse the 4-part comma-delimited Standardized place names and place the first 3 parts in the regular Name field and the first 2 parts in the Abbreviated field.Place Names – parse and recombinePlaceCommaParse
Recombine Fractures from FTM2012Recombines places from Ancestry.com having the “/” in the name which get split in FTM2012 into Place Name and Event Description.Places – Recombine Fractures from FTM 2012Places-RecombineFTMfractures2013-03-22


FormatParagraphingRemoves CR/LF characters around custom fact sentences and person/family/alt name/fact notes and adds CR/LF pairs to ends of notes except the last, for first cut batch paragraphing.ParagraphingParagraph-Strip | Paragraph-Add2011-12-22Y
FormatStrip footnote line feedsThis query strips extraneous Carriage Returns from the end of the Footnote sentence template for the Source Template “Vital Records (state-level, online derivatives)” which cause unwanted white space in reports.Source TemplatesFix Extra Line Feeds in Footnote2011-10-02
FormatNarrative, Jerry Bryan TrickCauses Narrative Descendant reports to output childless, spouseless children in their own generation, along with their married or parental siblings.Reports, Narrative, Jerry Bryan TrickDummyFamily-Add
FormatPlaces – first name exploit for improved narrativesTo mitigate repetition of full place names, changes the default sentence templates to use [Place:first] instead of [Place] and then goes on to generate custom sentence templates or modify existing ones for all first instances of a place in each person’s chronology to use [Place] instead of [Place:first]Places – first name exploit for improved narrativesPlaces-FirstNameExploit2013-03-30
My Lists
My ListsAhnentafel 64 generationsEvery direct line ancestral RIN list for one or all persons in the database with the Ahnentafel number of the last person in each line, to 64 generations, exceeding RM’s 32 gen limit on the number. Also shows all lines, not just those of parents selected for display in RM’s main Views.Ahnentafel 64 generationsAhnentafel-642012-01-13
My ListsAll factsList all the Individual, Family and Shared Facts/Events for all persons in a database. A complex query using UNION ALL, COUNT() and GROUP BY, constants and NULL to assemble multiple SELECTs in one big result.Pulling Together All the Events for An IndividualAllFacts4Persons2010-01-06
My ListsBegattersAn optional extension to AllFacts4Persons or standalone. Having a Child as an event for the Father and the Mother.Births of children as factsPersonsBegatChildren2010-01-14
My ListsDirect AncestorsLists all the ancestral lines for a given RINAncestors QueryAncestors2011-11-23
My ListsDNATwo queries that list the test results in a format suitable for easy review and copying and pasting into other applications. RM4.1.1.4 provides no DNA report.DNA Test results listDNA_mtDNA_locationslist | DNA_Y-STR_markerslist2011-06-18
My ListsFacts shared with persons in databaseLists people who share a fact with a Principal, as well as relevant fact and Principal information.People Who Share a Fact with a Principal List – QueryPeople Who Share a Fact with a Principal2010-03-10Y
My ListsFacts shared with persons NOT in databaseLists people who share a fact with a Principal, but who aren’t in a tree in the database file, as well as relevant fact and Principal information.People Who Share a Fact with a Principal, But Who Are Not in a Tree in the File List – QueryPeople Who Share a Fact with a Principal, But Who Are Not in a Tree in the File2010-02-26Y
My ListsGeo-LifelinesHave you ever wished to be able to look at all the facts in your family tree database that happened within a day’s horseride of a certain location? This adaptation of the LifeLines query helps you view your events for any geographic area in addition to looking at the lifeline of any person in your database.Geo-Lifelines QueryGeo-Lifelines2010-08-31
My ListsLifeLinesLists all events for all persons whether in a database tree or not, including shared facts, date, fact detail, site and place, MRIN, other parties, and duplication indicator. Sorted by RIN and Sort Date. With the right SQLite manager, can filter results for one person.LifeLines – QueryLifeLines2010-03-15
My ListsMap Events (KML)This query helps you plot events from your RootsMagic database on Google Maps, Google Earth, and Bing Maps, provided there are geo-coded Places and Place Details (sites) in your database.MapEvents-KML queryMapEvents-KML2010-09-03
My ListsMultiple spousesLists persons with multiple spouses in descending number – may flag a data problemMultiple Spouses queryMulti-spouses2010-08-23Y
My ListsNameless witnesses to shared factsReport on the role, event and owner or principal of the shared event for which a witness or sharee is no longer a person in the database.Shared Events With Missing WitnessesTraceHeadlessWitnesses2011-12-09Y
My ListsNon-ProvenList non-proven eventsReport Non Proven Proven2013-03-28
My ListsTo-Do GridA Query for a To Do List in a Grid Format – using the REFN to assign status for paragraphing and census. Versions for both SQLite directly and MS Access via SQLODBC.A Query for a To Do List in a Grid FormatMyToDoList2011-07-07Y




NameProduces a list of names that match or sound like specified names, similar to RM4’s NameFind.Name Find queryNameFind2011-11-21
SurnameList Persons with specified Surnames. — Example of creating a SQL View or Virtual Table and the explicit use of COLLATE NOCASE to override the RMNOCASE collation defined for certain fields and embedded in the RootsMagic application.Four Little Queriesselected_surnames2009-12-30
Search & ReplaceDiscussion and examples of how you can search (filter) using any SQLite manager and replace found values with revised ones using SQLiteSpy.Search & ReplaceSearch&Replace2010-11-09


Source ListAbout as close as we can get to a RM4 Source List Report presented in tabular form with which the results can be sorted and filtered with relative ease.Source List QuerySource List2011-11-05Y
Source DetailsLists Source Names along with Source Detail field names; illustrates principles applicable to Master Source fields and other XML-like columns.Source Detail View (Parsing XML)Source Detail View (Parsing XML)2011-06-06
CitationsLists all citations in the database from which citations of non-existent sources (‘phantoms’) and citations for non-existent events or persons (‘headless’) can be found, along with other useful information such as all citations per source.All Citations – QueryAllCitations2010-01-30
CitationsLists all source names cited for a person in descending order of the count of duplicate citations – a help in finding and resolving duplicate citations after merging.All Citations & Dupes Count – QueryAllCitations+Dupes2010-07-08
Citations, InvisibleList


Lists citations for Primary Name as imported from Ancestry.com, FTM, et al but hidden in RM.
Converts such invisible citations to visible Person citations.
Citations Invisible RevealedCitations, Invisible – List
Citations, Invisible – Convert to Personals
Sources by TemplateLists Sources associated with Source Templates, as well as an extension to Citation details. Free-Form templates are excluded since they’re not included in SourceTemplateTable.Source Template List – QuerySourceTemplateListWithCitationDetails2.sql2010-02-13
Make Built-in TemplatesEditableConverts Sources using uneditable, built-in templates to using editable copies.Source TemplatesSrcTmpltsConvert2011-10-02
Revert Editable Templates to Built-inReverts Sources modified by SrcTmpltsConvert to using uneditable, built-in templates.Source TemplatesSrcTmpltsRevert2011-10-02
Source Template Field CountLists the total number of fields used in a source template and the number of fields in its footnote sentence template as a measure of complexity.Source Templates – Field CountSourceTemplates-FieldCount2013-04-08


Lists uncompleted To Do tasks for Individuals, Families and General; can be readily modified to filter or sort by surname, priority, repository, etc.RM4 To Do ListTo-Do (was To-Do4Persons)2010-01-18Y


WebTags – Make from Ancestry.com CommentsCreates a Citation WebTag for each citation having an URL beginning the Citation Comments field with “http://”. Not restricted to Ancestry.com downloads.WebTags – from Ancestry.com and FTMWebTags-MakeFromAncestryComments2012-12-10Y
WebTags – ConsolidateCreates Person WebTags from Citation WebTags to consolidate all WebTags pertaining to a person under the WebTags button on the Edit Person Screen.WebTags – ConsolidateWebTags-Consolidate2012-12-10Y
WebTags – Delete DuplicatesDeletes perfectly duplicate WebTags as will occur if WebTags-Consolidate is repeated or other possible cause.WebTags – ConsolidateWebTags-DeleteDuplicates2012-12-10Y
WebTags – Convert to Notes et alAppend Person, Source and Citation WebTags to Person Notes, Source Comments and Citation Comments for passing through GEDCOM to other software.WebTags – convert to Notes et alWebTags_to_Notes2013-03-03

Addresses | Correspondence | Database | Edit | Facts | Fact Types | File | Functions | Groups | Media | People | Places | Reports | Repositories | Research | Search | Sources | To-Do | Tools

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.