Hello.
I am having a problem due to my inexperience with Access or database.
Here is my problem:
-I have a table set up to enter numbers on a hourly basis from each facility's power meter reading.
-I made a query to add up all the facility's meter reading for each hour of period yr 2000-yr 2009
-I need to subtract a previous hour's value from current hour value and report that value.
-I do not know how to subtract previous record from current record.
Please help me out.
I am using MS Access 2007.
So far, I used to write SQL in query for all the calculation.
If the query is not the best option for this problem, then please suggest me with some detail information.
I am pretty new to the database, ACCESS, and SQL.
The following table is a part of the output from my query, and I need to know how much more/less MWh is increased/decreased in every hours.
In order to do that, I need to subtract Total_MWh values from two consecutive records.
Date Hour Total_MWh
1/1/2000 1 182.789
1/1/2000 2 182.996
1/1/2000 3 183.006
1/1/2000 4 182.981
..... ... .....
12/31/2009 24 180.903
This table contains usage of Mega Watt hour(MWh) of every hour in every day for 10 years.
I am having a problem due to my inexperience with Access or database.
Here is my problem:
-I have a table set up to enter numbers on a hourly basis from each facility's power meter reading.
-I made a query to add up all the facility's meter reading for each hour of period yr 2000-yr 2009
-I need to subtract a previous hour's value from current hour value and report that value.
-I do not know how to subtract previous record from current record.
Please help me out.
I am using MS Access 2007.
So far, I used to write SQL in query for all the calculation.
If the query is not the best option for this problem, then please suggest me with some detail information.
I am pretty new to the database, ACCESS, and SQL.
The following table is a part of the output from my query, and I need to know how much more/less MWh is increased/decreased in every hours.
In order to do that, I need to subtract Total_MWh values from two consecutive records.
Date Hour Total_MWh
1/1/2000 1 182.789
1/1/2000 2 182.996
1/1/2000 3 183.006
1/1/2000 4 182.981
..... ... .....
12/31/2009 24 180.903
This table contains usage of Mega Watt hour(MWh) of every hour in every day for 10 years.
Last edited: