I use SQL, and I have a table with three columns: account, transaction_date, Points. Each account will have multiple transactions and points earned for each transaction.
How can I return transaction_date when each account reaches a certain threshold (i.e. accumulates 100 points). Let's say the first account has 2,000 transactions, and the first five have 21 points each. I would like the request to return transaction No. 5, because this is when the account has reached 100.
Can anyone help? Thank you Cat
Cat
source
share