V
valglad
Hi,
Would appreciate any help with designing a query(most probably queries)
based on the following table:
Product Line Customer Whse Variance Whse Mode Mode Variance
PRD1 6164 -10 One RAIL 30
PRD1 6164 28 One TRUCK -5
PRD1 6164 -20 Two RAIL 10
PRD1 6164 25 Two TRUCK -1
The objective is to produce a record, which first has a maximum value
for warehouse variance (in this example, it's warehouse "One" since it
has Whse Variance of 18 (-10+28)) and then determine which mode that
uses this warehouse has the highest value (in this case its Rail with a
value of 30).
The query output should look something like that:
Product Customer Whse Var Whse Mode Mode Var
PRD1 6164 18 One Rail 30
The query(ies) is(are) run from Excel using DAO and results are
transferred to Excel.
Could anyone show me some guidance with builiding queries here because
I'm sort of lost here.
Thanks
Val
Would appreciate any help with designing a query(most probably queries)
based on the following table:
Product Line Customer Whse Variance Whse Mode Mode Variance
PRD1 6164 -10 One RAIL 30
PRD1 6164 28 One TRUCK -5
PRD1 6164 -20 Two RAIL 10
PRD1 6164 25 Two TRUCK -1
The objective is to produce a record, which first has a maximum value
for warehouse variance (in this example, it's warehouse "One" since it
has Whse Variance of 18 (-10+28)) and then determine which mode that
uses this warehouse has the highest value (in this case its Rail with a
value of 30).
The query output should look something like that:
Product Customer Whse Var Whse Mode Mode Var
PRD1 6164 18 One Rail 30
The query(ies) is(are) run from Excel using DAO and results are
transferred to Excel.
Could anyone show me some guidance with builiding queries here because
I'm sort of lost here.
Thanks
Val