Can you have ties and if you can, how do you want to deal with them?
@rahulk21 wrote:
Account Date Amount
A 01/03 100
A 01/03 200
A 01/03 300
A 01/03 400
A 01/03 50
A 01/05 200
A 01/05 400
A 01/05 500
A 01/05 600
B 01/06 700
B 01/06 800
B 01/06 100
B 01/06 60
OUTPUT:
A 01/03 200
A 01/05 400
B 01/06 100
Basically, want 3rd highest value for each unique combination of account and date
... View more