I am working on past national censuses stored in an Oracle database. My main tools for working with it, are MS Access and LibreOffice Base, depending on what kind of task I have to solve. I do not have direct access to the dbase; I cannot, for instance, run update queries directly on the main tables, but I can do this on subtables I have created in my environment.
I would like to list all unique standardised names from a census, with the number of instances shown as a count, and listing all variants of the name in a seperate column. How would such a query be written?
In the example below, the …S
following Firstname
, indicates which standard name the source’s first name is encoded under.
Firstname FirstnameS
Tor Tor
Thor Tor
Per Per
Peer Per
Pær Per
Pär Per
Caroline Karoline
Charoline Karoline
Karoliine Karoline
Desired output
FirstnameS Σ Firstname_variants
Tor 2 Tor, Thor
Per 4 Per, Peer, Pær, Pär
Karoline 3 Caroline, Charoline, Karoliine
───
I hope I’ve provided all information and asked the question in a manner befitting the RoC of Stackoverflow. Be gentle; it’s my first question!