rashutaarbl
New member
- Local time
- Today, 18:17
- Joined
- Feb 12, 2020
- Messages
- 3
Hi everyone
I'm very new to access in general and I started to learn it because I was asked to work on a database at my new work. So literally I learned everything along the way. Now I am stuck as I want to generate some statistics and charts but I need to generate some counts on my tables.
So I have a table with the following columns:
ID | Substation | Meter1 | MProducer1 | Meter2 | MProducer2 | Meter3 | MProducer3 | Meter4 | MProducer4
Each substation has 4 different types of meters of different production companies (let's say 3 ABB, SCHNEIDER and SIEMENS). On the Meter columns I have the serial numbers of the meters.
What I am struggling to do is getting the total count and sum of how many meters are from ABB, SCHNEIDER and SIEMENS from ALL 4 columns.
My initial idea was to make a Query for each column and use group by and count but when I wanted to sum all 4 queries, I just lost it.
What I want to achieve at the end is to have a query like for example:
ABB | 20
SCHNEIDER | 10
SIEMENS | 10
SUM | 40
Any suggestion what should I do and how? Thank you in advance
I'm very new to access in general and I started to learn it because I was asked to work on a database at my new work. So literally I learned everything along the way. Now I am stuck as I want to generate some statistics and charts but I need to generate some counts on my tables.
So I have a table with the following columns:
ID | Substation | Meter1 | MProducer1 | Meter2 | MProducer2 | Meter3 | MProducer3 | Meter4 | MProducer4
Each substation has 4 different types of meters of different production companies (let's say 3 ABB, SCHNEIDER and SIEMENS). On the Meter columns I have the serial numbers of the meters.
What I am struggling to do is getting the total count and sum of how many meters are from ABB, SCHNEIDER and SIEMENS from ALL 4 columns.
My initial idea was to make a Query for each column and use group by and count but when I wanted to sum all 4 queries, I just lost it.
What I want to achieve at the end is to have a query like for example:
ABB | 20
SCHNEIDER | 10
SIEMENS | 10
SUM | 40
Any suggestion what should I do and how? Thank you in advance
