I’m on the verge of giving up. Any help much appreciated.
My DB has a single table “tbl_ClientLog” whose first few records might contain:
ID | Org | Year | Quarter | ClientsSeen | NrMale | NrFemale | Nr<26 | Nr26-45 | Nr46-65 | Nr>65 | Nr Assessments | ReportSubmitted? |
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | RM Unlimited | 2023 | 2 | 24 | 13 | 11 | 0 | 9 | 12 | 3 | 20 | true |
1 | CC Onthego | 2023 | 1 | 48 | 19 | 29 | 1 | 14 | 18 | 15 | 42 | true |
2 | AUR Ready | 2023 | 1 | 23 | 9 | 14 | 0 | 0 | 6 | 17 | 21 | false |
3 | AUB Zipser | 2023 | 1 | 31 | 15 | 16 | 0 | 0 | 0 | 31 | 31 | true |
4 | AUR Ready | 2023 | 2 | 45 | 30 | 15 | 0 | 0 | 5 | 40 | 43 | false |
6 | RM Unlimited | 2023 | 1 | 19 | 7 | 12 | 1 | 5 | 12 | 1 | 19 | true |
7 | AUR Zipser | 2023 | 2 | 28 | 12 | 16 | 1 | 0 | 0 | 27 | 27 | true |
8 | CC Onthego | 2023 | 2 | 54 | 28 | 26 | 2 | 9 | 30 | 13 | 53 | false |
Note: this is a gross simplification of the real case, which has over 50 fields per record, but it will serve to get the point across.
So this might represent the quarterly monitoring of 4 separate charities (“Org”) collaborating on a single commissioned project. Each charity will enter their own quarterly data into a common database file shared on OneDrive or similar.
But the commissioning authority, for monitoring purposes, wants only totalled data for each quarter, so, for example, qr 1 of 2023 would show 121 clients seen, of which 50 were male, and so on. And, try as I might, I cannot construct an SQL Query for LO Base that produces this (I have HSQLDB as the embedded database).
SQL seems to be language bedevilled by its dialects. I can Google SQL queries that look like they will do the sort of thing I want (using SELECTs within SELECTs), but the syntax won’t work in LO Base, whose debugging facilities are effectively zero.
OK, so I could do the whole thing in a spreadsheet (and I have), but Excel has pretty clunky input facilities — MS Forms is just a toy in this sort of application, and the forms built into Excel have a limit of 30-odd fields and don’t look good — whereas i can make great-looking input form for LO Base. And, as far as output is concerned, I imagine I could create a nice Report in LO Base, whereas with Excel I might have to explore the monster-infested depths of MS Power Query.
So, is it bye-bye LO Base or is there a solution to this sort of thing that I’m missing (probably due to my inexperience)?