K
Kevin
I have been searching past posts on using dates as query criteria but did not
find something similar to my issue.
I have two tables I am working with. The first lists a starting and ending
date when a specific value should be used for calculations in a second table.
The value used in calculations is "Weight" and the table looks like this:
STATION_ID START_DATE END_DATE GAGE_ID WEIGHT
MOGC0296 1/1/1970 3/15/1970 MOGC0112 0.34
MOGC0296 1/1/1970 3/15/1970 MOGC0124 0.66
MOGC0296 3/16/1970 11/7/1970 MOGC0123 0.206
MOGC0296 3/16/1970 11/7/1970 MOGC0127 0.321
MOGC0296 3/16/1970 11/7/1970 MOGC0129 0.083
MOGC0296 3/16/1970 11/7/1970 MOGC0130 0.39
The second table is joined to the first by the "Gage_ID" field and contains
data that is continously collected and needs to be used in a calculation with
"Weight" but the "Weight" value changes based on the time period when it was
collected. The second table contains the "Gage_ID", "DATE", and
"COLLECTED_DATA". How can I set up this query to only use the specific
"WEIGHT" dependent on the time period when it was collected.
Can I use the BETWEEN in the query criteria somehow?
Any help is greatly appreciated. Thank you.
find something similar to my issue.
I have two tables I am working with. The first lists a starting and ending
date when a specific value should be used for calculations in a second table.
The value used in calculations is "Weight" and the table looks like this:
STATION_ID START_DATE END_DATE GAGE_ID WEIGHT
MOGC0296 1/1/1970 3/15/1970 MOGC0112 0.34
MOGC0296 1/1/1970 3/15/1970 MOGC0124 0.66
MOGC0296 3/16/1970 11/7/1970 MOGC0123 0.206
MOGC0296 3/16/1970 11/7/1970 MOGC0127 0.321
MOGC0296 3/16/1970 11/7/1970 MOGC0129 0.083
MOGC0296 3/16/1970 11/7/1970 MOGC0130 0.39
The second table is joined to the first by the "Gage_ID" field and contains
data that is continously collected and needs to be used in a calculation with
"Weight" but the "Weight" value changes based on the time period when it was
collected. The second table contains the "Gage_ID", "DATE", and
"COLLECTED_DATA". How can I set up this query to only use the specific
"WEIGHT" dependent on the time period when it was collected.
Can I use the BETWEEN in the query criteria somehow?
Any help is greatly appreciated. Thank you.