G
Guest
Hello! I am working with a table of orders that is related to a table of
order activities. An activity record includes a beginning and ending date as
well as an amount.
I am looking for a way to group/total or consolidate by order and to find
the oldest date in the activity table for the START DATE field and to also
define the newest date for that order in the END DATE field. The result would
be the current period of performance. Some orders only have one record (which
is easy to solve) while others may have 2-5 activity records as modifications
are made over time.
It is usually true that the first activity record contains the oldest START
DATE and that the most recent entry will have the newest END DATE but there
are some exceptions depending on the accuracy of the specialist who enters
the activity.
Thank you in advance.
order activities. An activity record includes a beginning and ending date as
well as an amount.
I am looking for a way to group/total or consolidate by order and to find
the oldest date in the activity table for the START DATE field and to also
define the newest date for that order in the END DATE field. The result would
be the current period of performance. Some orders only have one record (which
is easy to solve) while others may have 2-5 activity records as modifications
are made over time.
It is usually true that the first activity record contains the oldest START
DATE and that the most recent entry will have the newest END DATE but there
are some exceptions depending on the accuracy of the specialist who enters
the activity.
Thank you in advance.