C
Cam
Hello,
I am trying to create a query from an appended table to take only the max
days from the same S/O# and Oper#, but does not know what to do. Here is the
sample of data and what I want to achieve.
Table data:
S/O# Oper# Days AppendDate
606 160 1 6/16/09
606 160 4 6/19/09
606 170 3 6/24/09
606 202 4 7/6/09
117 160 1 6/16/09
117 160 4 6/19/09
117 160 9 6/24/09
117 190 8 7/6/09
117 260 1 7/15/09
387 130 2 6/16/09
387 160 2 6/19/09
387 160 7 6/24/09
387 250 5 7/6/09
Result want to achieve:
S/O# Oper# Days AppendDate
606 160 4 6/19/09
606 170 3 6/24/09
606 202 4 7/6/09
117 160 9 6/24/09
117 190 8 7/6/09
117 260 1 7/15/09
387 130 2 6/16/09
387 160 7 6/24/09
387 250 5 7/6/09
S/O# 606 result in three records from 4 cause it is filtering and only take
the max days if the records have the same S/O# and Oper#. How to achieve
this? Thanks
I am trying to create a query from an appended table to take only the max
days from the same S/O# and Oper#, but does not know what to do. Here is the
sample of data and what I want to achieve.
Table data:
S/O# Oper# Days AppendDate
606 160 1 6/16/09
606 160 4 6/19/09
606 170 3 6/24/09
606 202 4 7/6/09
117 160 1 6/16/09
117 160 4 6/19/09
117 160 9 6/24/09
117 190 8 7/6/09
117 260 1 7/15/09
387 130 2 6/16/09
387 160 2 6/19/09
387 160 7 6/24/09
387 250 5 7/6/09
Result want to achieve:
S/O# Oper# Days AppendDate
606 160 4 6/19/09
606 170 3 6/24/09
606 202 4 7/6/09
117 160 9 6/24/09
117 190 8 7/6/09
117 260 1 7/15/09
387 130 2 6/16/09
387 160 7 6/24/09
387 250 5 7/6/09
S/O# 606 result in three records from 4 cause it is filtering and only take
the max days if the records have the same S/O# and Oper#. How to achieve
this? Thanks