Help!
From a transaction file I need to determine if stock has been sold within 2 months of being bought.
Here is some simple data: -
assetcode tradedate tradetype
ASSET01 20040130 BUY
ASSET02 20040130 BUY
ASSET01 20040215 SELL
ASSET03 20040130 BUY
ASSET04 20040130 BUY
ASSET03 20040515 SELL
I need to show the buy and sell details on the same line in the report.
Any assistance would be gratefully received.
Cheers
T
From a transaction file I need to determine if stock has been sold within 2 months of being bought.
Here is some simple data: -
assetcode tradedate tradetype
ASSET01 20040130 BUY
ASSET02 20040130 BUY
ASSET01 20040215 SELL
ASSET03 20040130 BUY
ASSET04 20040130 BUY
ASSET03 20040515 SELL
I need to show the buy and sell details on the same line in the report.
Any assistance would be gratefully received.
Cheers
T