I have data collected from on-site data loggers that I need to analyze. I have run a query to sort DataLoggerKey from AreaTypeTable based on the classification of the Area type that the logger was installed in. From this query I have a list of unique DataLoggerKey entries. I want to query another table that has data (and therefore multiple entries) that correlate to each DataLoggerKey. Example:
DataLoggerTable -
DataLoggerKey_________Date_________Occupied_________ Lights
8171_________________5/5/08_________0_______________0
8171__________________5/6/08_________1__________________0
8171__________________5/7/08_________1__________________1
8171__________________5/8/08_________0__________________1
415__________________5/6/08_________1__________________0
415__________________5/7/08_________0__________________1
7555__________________5/8/08_________1__________________1
AreaTypeTable -
DataLoggerKey_________Refrigerated_________Aisle?
415__________________non__________________aisle
7555__________________refrig_______________open space
4632__________________freezer______________aisle
8171__________________non_________________aisle
How do I structure a query that will yield the columns Date, Occupied, Lights, based on the criteria that DataLoggerKey from DataLoggerTable matches DataLoggerKey from AreaTypeTable based on area type (Refrigerated Aisles, Nonrefrig aisles, freezer open spaces etc.)?
Thanks in advance.
DataLoggerTable -
DataLoggerKey_________Date_________Occupied_________ Lights
8171_________________5/5/08_________0_______________0
8171__________________5/6/08_________1__________________0
8171__________________5/7/08_________1__________________1
8171__________________5/8/08_________0__________________1
415__________________5/6/08_________1__________________0
415__________________5/7/08_________0__________________1
7555__________________5/8/08_________1__________________1
AreaTypeTable -
DataLoggerKey_________Refrigerated_________Aisle?
415__________________non__________________aisle
7555__________________refrig_______________open space
4632__________________freezer______________aisle
8171__________________non_________________aisle
How do I structure a query that will yield the columns Date, Occupied, Lights, based on the criteria that DataLoggerKey from DataLoggerTable matches DataLoggerKey from AreaTypeTable based on area type (Refrigerated Aisles, Nonrefrig aisles, freezer open spaces etc.)?
Thanks in advance.
Last edited: