select column_name with highest value in table
3728May 1 2007 — edited May 1 2007Hello,
I have a table with many ( 30 ) numeric columns.
I need to get the column_name in the table that has the highest value. I also need the column_name with the second highest value.
My attemps have gone nowhere ( using greatest to get value, and try to join with cols ).
Any help is appreciated.
Take care.
S