Dears, please, help to solve following problem:
In Access I have a table with some data like
DateTime__________| a | b | c | d | e |
10.03.2016 01:00:00 | 1 | 0 | 4 | 3 | 7 |
...
etc.
I need to get following results:
1. total result for dates 01.03.2016 till 10.03.2016 - Expr1: 100*sum(b)/sum(a),
total result for dates 01.03.2016 till 10.03.2016, counting only hours between 06:00-22:00 - Expr2: 100*(sum©+sum(e))/sum(d)
| Expr1 | Expr2 |
|__12__|__3__|
...
etc.
2. daily result for dates 01.03.2016 till 10.03.2016 - Expr1: 100*sum(b)/sum(a),
total result for dates 01.03.2016 till 10.03.2016, counting only hours between 06:00-22:00 - Expr2: 100*(sum©+sum(e))/sum(d)
_________| Expr1 | Expr2 |
01.03.2016 |__12__|__3__|
02.03.2016 |__10__|__8__|
...
etc.
Now I'm doing two separate queries for each Expr, for Expr2 just adding Format([CELL_CS_KPI]![Start Time];"hh\:nn\:ss"), Where Between "06:00:00" And "22:00:00"
So, my question is - How I can combine two different time queries from one source table in one query, in order to be able to prepare noremal report?
Thank you!
In Access I have a table with some data like
DateTime__________| a | b | c | d | e |
10.03.2016 01:00:00 | 1 | 0 | 4 | 3 | 7 |
...
etc.
I need to get following results:
1. total result for dates 01.03.2016 till 10.03.2016 - Expr1: 100*sum(b)/sum(a),
total result for dates 01.03.2016 till 10.03.2016, counting only hours between 06:00-22:00 - Expr2: 100*(sum©+sum(e))/sum(d)
| Expr1 | Expr2 |
|__12__|__3__|
...
etc.
2. daily result for dates 01.03.2016 till 10.03.2016 - Expr1: 100*sum(b)/sum(a),
total result for dates 01.03.2016 till 10.03.2016, counting only hours between 06:00-22:00 - Expr2: 100*(sum©+sum(e))/sum(d)
_________| Expr1 | Expr2 |
01.03.2016 |__12__|__3__|
02.03.2016 |__10__|__8__|
...
etc.
Now I'm doing two separate queries for each Expr, for Expr2 just adding Format([CELL_CS_KPI]![Start Time];"hh\:nn\:ss"), Where Between "06:00:00" And "22:00:00"
So, my question is - How I can combine two different time queries from one source table in one query, in order to be able to prepare noremal report?
Thank you!