I want to do this:
A thousand runners run a race, take the most clubs, the winner is the first place is Juan with 200000, second place Pedro with 50 and the third place Pedro with 2 sticks. I must select by name Pedro that only sees the second place of collecting sticks.
NO, I do not want this because Pedro can be anyone, it's a variable, the important thing is the sticks collected in BIGINT value.
SELECT nombre FROM TABLE Where Nombre PEDRO
SELECT TOP 1 nombre FROM TABLE
SELECT TOP 2 nombre FROM TABLE
SELECT TOP 3 nombre FROM TABLE
I want the Excel to show me the second one that picked the most sticks, the third one, but only if I do Pedro, which is the second place, show me only Pedro.