W
Webmaster
Hi everyone,
I want to collect data, for example of electronical counters.
The table looks something like
CounterID Date CounterReading Difference CountPerDay
A123 20020601 50.000 xxxxx
B456 20020610 80.000 xxxxx
C789 20020705 122.123 xxxxx
A123 20030601 100.000 xxxxx
B456 20030610 123.456 xxxxx
C789 20030705 234.123 xxxxx
Now the problem:
When a user types in the next record and updates
the CounterReading field, i.e.
A123 20040120 160.000
the difference to the last record of the same CounterID
(here line 4, date of 20030601)
should be calculated in the difference field ----> 60.000.
In the CountPerDay field should be calculated the consumption
per day (60.000/number of days).
Any help appreciated in advance
Michael
I want to collect data, for example of electronical counters.
The table looks something like
CounterID Date CounterReading Difference CountPerDay
A123 20020601 50.000 xxxxx
B456 20020610 80.000 xxxxx
C789 20020705 122.123 xxxxx
A123 20030601 100.000 xxxxx
B456 20030610 123.456 xxxxx
C789 20030705 234.123 xxxxx
Now the problem:
When a user types in the next record and updates
the CounterReading field, i.e.
A123 20040120 160.000
the difference to the last record of the same CounterID
(here line 4, date of 20030601)
should be calculated in the difference field ----> 60.000.
In the CountPerDay field should be calculated the consumption
per day (60.000/number of days).
Any help appreciated in advance
Michael