Could someone assist with SQL in creating a calculated field. I need to show a meter total and I have 2 tables as follows:
Tbl1
MeterID – pk
InitialMeterRead
Tbl2
MeterReadID – pk
Ref_MeterID – fk to Tbl1.MeterID
MeterRead
Tbl1.InitialMeterRead is the start reading of a meter. Subsequent readings are recorded in Tbl2.MeterRead. The meter total will be determined by subtracting the start reading in Tbl1 from the highest reading, or maximum reading, in Tbl2.MeterRead.
Thank you
Tbl1
MeterID – pk
InitialMeterRead
Tbl2
MeterReadID – pk
Ref_MeterID – fk to Tbl1.MeterID
MeterRead
Tbl1.InitialMeterRead is the start reading of a meter. Subsequent readings are recorded in Tbl2.MeterRead. The meter total will be determined by subtracting the start reading in Tbl1 from the highest reading, or maximum reading, in Tbl2.MeterRead.
Thank you