Forum Discussion

DianneB's avatar
DianneB
Frequent Visitor
4 years ago
Solved

How do I get a single value based on three queries that need to match

Hi,

I have two tables (1 and 2) - I want to match details in Table 1 with Table 2 to get unique value (result)?

There will be many combinations - each with a unique result.

 

 

Thanks

Di

3 Replies

    • DianneB's avatar
      DianneB
      Frequent Visitor

      Hi and thanks for your comment - let me try and explain a bit further and this time I will use the actual data query.

       

      What my ultimate aim is to find the applicable emission factor based on three parameters - tank type, fuel type and weather zone.  The emission factor will vary depending on these three parameters.

       

      On one table, I have site details which will list the three parameters and on another table I have the emission factors listed for each combination possible for these three parameters.  A site can have only one weather zone but can have multiple tank types and fuel types.

       

      I have highlighted below what the result should be for a few examples.  Does this make more sense?  There are many more tank types and fuel types that I have not listed, but once I get the logic and formula correct (with your help if possible), I can accordingly adjust.