I have this table structure
CLIENT_ID | QTY_A | QTY_B | QTY_C | QTY_D | QTY_E
====================================================
1 | 20| 21| 19| NULL| 30
----------------------------------------------------
2 | 45| NULL| 31| 80| 54
----------------------------------------------------
And i am trying to calculate, for wach CLIENT_ID, the first, second and third largest values.
How can i achieve this? Analytic functions cannot help me here, right? I cannot just order by a column.
Thanks in advance.