What i need is to sum all the [IN] Rows
Example:
Table 1 :
ID TIME_END IN
-------------------
1 00:01 5
2 00:31 8
3 05:01 3
4 06:01 7
so i need new table with new Field with 24 column that sum all the day from the first Fields on Table 1
and when Table 1 is update the "SUM_DAY" on Table2 is also update
Table 2 :
SUM_DAY
13 -- > its the sum of the Hour 00:00 - 00:59
0
0
0
0
3 -- > its the sum of the Hour 05:00 - 05:59
0
7 -- > its the sum of the Hour 07:00 - 07:59
till 23:59
Example:
Table 1 :
ID TIME_END IN
-------------------
1 00:01 5
2 00:31 8
3 05:01 3
4 06:01 7
so i need new table with new Field with 24 column that sum all the day from the first Fields on Table 1
and when Table 1 is update the "SUM_DAY" on Table2 is also update
Table 2 :
SUM_DAY
13 -- > its the sum of the Hour 00:00 - 00:59
0
0
0
0
3 -- > its the sum of the Hour 05:00 - 05:59
0
7 -- > its the sum of the Hour 07:00 - 07:59
till 23:59