Please see the attached spreadsheet what I need to generate.
I need to get the points spent split by earnings. PointsQuery.xlsx
Microsoft SQL Server 2008
Last Comment
harfang
8/22/2022 - Mon
santhimurthyd
Hi
Could you share more about your requiremnt
In the Result table you have all teh TransactionId's as 4, whre in the source table it's 1,2,..6.
Is it's the requirment and also on which condition the Earnign Points are getting splitted into the record which si not having and aslo teh no of records in Source is 6, where as in the result it's 5.
rajvja
ASKER
Hi santhimurthyd,
Thanks for the reply.
I need to generate the result for SpentPoints. As I said, the points might have earned on different transactions. So, I want all the earn dates corresponding toeach spent transaction.
PS: I realise that you will have to port it to SQL Server, but once I got started thinking about a possible algorithm, I had to go through with it. In the end, it's quite similar to what michalsmiechowski just suggested.
Could you share more about your requiremnt
In the Result table you have all teh TransactionId's as 4, whre in the source table it's 1,2,..6.
Is it's the requirment and also on which condition the Earnign Points are getting splitted into the record which si not having and aslo teh no of records in Source is 6, where as in the result it's 5.