* Custom Query - can I use GROUP BY like SQL

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
User avatar
steveflanuk
Diamond
Posts: 54
Joined: 25 May 2015 19:21
Family Historian: V6.2

Custom Query - can I use GROUP BY like SQL

Post by steveflanuk » 17 May 2018 19:39

I am looking to create a custom query listing all Fact types that I have used in my Project. However, when I request just the name of a Fact I get a row for every use within my project (i.e. all birth entries, all census entries, etc). For example, if I have 100 separate birth facts, I get 100 rows with a fact name of Birth.

Is it possible to use some kind of GROUP BY function like SQL so that it only shows one row per 'fact name'?

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

Re: Custom Query - can I use GROUP BY like SQL

Post by tatewise » 17 May 2018 19:50

No, I don't believe there is a way to do that with a Query. It would need a Plugin.

However, you can use a Fact Query to produce a list of Facts with no other columns, then export that to Excel and on its Data tab use Remove Duplicates.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
steveflanuk
Diamond
Posts: 54
Joined: 25 May 2015 19:21
Family Historian: V6.2

Re: Custom Query - can I use GROUP BY like SQL

Post by steveflanuk » 17 May 2018 20:54

Mike - many thanks for the quick reply as usual.

I'll probably remove the duplicate entries in Excel, I don't think I would need this information enough to warrant going through writing a Plugin for it.

I just wanted to know which Facts I've used so I can check the narrative sentences, rather than going through every single standard Fact - a fair number of which I haven't used. I think the Excel route is probably the quickest and easiest way of achieving what I want.

Post Reply