D
Duncs
I hope someone can help with a query problem I have…
I have the following table structure:
fldTransactionID
fldStatus
fldStatusDate
fldTransactionAmt
fldLastTransactionDate
This table is populated as follows:
11537481 CREATED 10/11/2008 1992.00 11/11/2008
11537481 DISTRIBUTED 21/11/2008 1992.00 20/11/2008
11537481 ON_CARD 30/11/2008 1992.00 01/12/2008
12004143 NETWORKED 19/12/2008 204.00 13/12/2008
12004143 NETWORKED 19/12/2008 204.00 14/12/2008
12004143 NETWORKED 19/12/2008 204.00 15/12/2008
12004143 NETWORKED 19/12/2008 204.00 16/12/2008
What I need to do, is display the last ‘transaction’ for each unique
fldTransactionID. So, for example, using the above data I would
display:
11537481 ON_CARD 30/11/2008 1992.00 01/12/2008
12004143 NETWORKED 19/12/2008 204.00 16/12/2008
Can anyone assist with this?
Many TIA
Duncs
I have the following table structure:
fldTransactionID
fldStatus
fldStatusDate
fldTransactionAmt
fldLastTransactionDate
This table is populated as follows:
11537481 CREATED 10/11/2008 1992.00 11/11/2008
11537481 DISTRIBUTED 21/11/2008 1992.00 20/11/2008
11537481 ON_CARD 30/11/2008 1992.00 01/12/2008
12004143 NETWORKED 19/12/2008 204.00 13/12/2008
12004143 NETWORKED 19/12/2008 204.00 14/12/2008
12004143 NETWORKED 19/12/2008 204.00 15/12/2008
12004143 NETWORKED 19/12/2008 204.00 16/12/2008
What I need to do, is display the last ‘transaction’ for each unique
fldTransactionID. So, for example, using the above data I would
display:
11537481 ON_CARD 30/11/2008 1992.00 01/12/2008
12004143 NETWORKED 19/12/2008 204.00 16/12/2008
Can anyone assist with this?
Many TIA
Duncs