How to get second largest score from player records
Is this right way to use?
Player.order("score DESC").first(2).last
Please any idea .
How to get second largest score from player records
Is this right way to use?
Player.order("score DESC").first(2).last
Please any idea .
You can use second:
Player.order("score DESC").second
thank you for your suggestions
is there any way to handle this in optimization solutions?