judehamilton
Registered User.
- Local time
- Yesterday, 17:01
- Joined
- Jan 7, 2011
- Messages
- 12
Hello, all--I have a large collection of water quality data collected every 30 minutes from 1999 to 2006. I have attached a truncated version of one of my tables so you can see what I am working with.
I need to conduct some calculations on these "DO_pct" and "DO_mgl" data at overlapping, consecutive data points (which I am calling "time 1" and "time 2"): i.e., from time 1 (line 1) and time 2 (line 2); time 1 (line 2) and time 2 (line 3); and so on. I have the calculated field ready to go, but am somehow confounded as to how to set up a query or series of queries that will include "time 1" and "time 2" fields for both the "DateTimeStamp" (mm/dd/yyyy h:nn) and the DO values in the same line so I can perform the calculation. I am thinking of an output such as the following:
Time1 Time2 T1_DO_pct T2_DO_pct
06/03/1999 18:00 06/03/1999 18:30 116.8 121
06/03/1999 18:30 06/03/1999 19:00 121 120.4
06/03/1999 19:00 06/03/1999 19:30 120.4 119.7
This seems to me like it should be a simple operation, but I have not been successful thus far...my output has included only about 2/3 of the "time 1/time 2" values. Hopefully someone can enlighten me as to how to set this up.
Thank you in advance for any input you can provide!
Judy
I need to conduct some calculations on these "DO_pct" and "DO_mgl" data at overlapping, consecutive data points (which I am calling "time 1" and "time 2"): i.e., from time 1 (line 1) and time 2 (line 2); time 1 (line 2) and time 2 (line 3); and so on. I have the calculated field ready to go, but am somehow confounded as to how to set up a query or series of queries that will include "time 1" and "time 2" fields for both the "DateTimeStamp" (mm/dd/yyyy h:nn) and the DO values in the same line so I can perform the calculation. I am thinking of an output such as the following:
Time1 Time2 T1_DO_pct T2_DO_pct
06/03/1999 18:00 06/03/1999 18:30 116.8 121
06/03/1999 18:30 06/03/1999 19:00 121 120.4
06/03/1999 19:00 06/03/1999 19:30 120.4 119.7
This seems to me like it should be a simple operation, but I have not been successful thus far...my output has included only about 2/3 of the "time 1/time 2" values. Hopefully someone can enlighten me as to how to set this up.
Thank you in advance for any input you can provide!
Judy