G
Guest
I have a database of order numbers, transaction date, transaction type(enter,
change or delete) order amount, and other fields. The transaction date field
will have the date the order was entered or changed. The database contains a
new row for each change and the transaction date of that change. So my table
can/will have multiple rows for each order number based on the number of
changes. For example, when an order is entered it will create a row in the
table. Each time a change is made to the order it will create a new row in
the table. So one row will be for the entry of the order with the recorded
data, another row will be for the changes. The only difference between the
two rows, that I am concerned about, will be the transaction date and the
order totals.
What I am trying to get is a new table that will have the order number with
the original entered date and the current order amount regardless of how many
times it has been changed.
So my database looks like this:
Ord# Trans. Date Trans Type Amount
1234 01/15/07 Entered 100.00
1234 02/20/07 Changed 175.00
I want a new table that will just have this:
Ord# Trans. Date Trans Type Amount
1234 01/15/07 Entered 175.00
Can anyone help me out with this?
Thanks in advance for your help.
change or delete) order amount, and other fields. The transaction date field
will have the date the order was entered or changed. The database contains a
new row for each change and the transaction date of that change. So my table
can/will have multiple rows for each order number based on the number of
changes. For example, when an order is entered it will create a row in the
table. Each time a change is made to the order it will create a new row in
the table. So one row will be for the entry of the order with the recorded
data, another row will be for the changes. The only difference between the
two rows, that I am concerned about, will be the transaction date and the
order totals.
What I am trying to get is a new table that will have the order number with
the original entered date and the current order amount regardless of how many
times it has been changed.
So my database looks like this:
Ord# Trans. Date Trans Type Amount
1234 01/15/07 Entered 100.00
1234 02/20/07 Changed 175.00
I want a new table that will just have this:
Ord# Trans. Date Trans Type Amount
1234 01/15/07 Entered 175.00
Can anyone help me out with this?
Thanks in advance for your help.