For credit transactions only, rank each account's credits by amount (largest = 1). Return account_id, txn_id, amount and credit_rank.
amount
account_id
txn_id
credit_rank
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.