A
Ahern
Guest
I have the following table which consists of chemical data. The data consists of two fields, one of which is the value and the other referes to whether or not the concentration was below the limit of detection (see example). I need to calculate the min, maximum and average by year which is not a problem. My problem is that I must also be able to report whether the calculated value is either less than what is stated or equal to it. I have illustrated the logic of the problem below
Year LOD Concentration
2000 < 1
2000 5
2001 1.5
2001 5
So that in my query, the resultant table would look like this once the query has run. For 2001 both values are above the limit of detection and so the query is straightforward. In 2000, the LOD needs to be reported for both the minimum and the average but not the maximum.
Year LOD Min LOD Max LOD Average
2000 < 1 5 < 3
2001 1.5 5 3.25
I am relatively new to access and cannot see a way to produce this query with the Limits of detection which works properly. Can anyone suggest a way to do this.
Year LOD Concentration
2000 < 1
2000 5
2001 1.5
2001 5
So that in my query, the resultant table would look like this once the query has run. For 2001 both values are above the limit of detection and so the query is straightforward. In 2000, the LOD needs to be reported for both the minimum and the average but not the maximum.
Year LOD Min LOD Max LOD Average
2000 < 1 5 < 3
2001 1.5 5 3.25
I am relatively new to access and cannot see a way to produce this query with the Limits of detection which works properly. Can anyone suggest a way to do this.
Last edited: