I have a query object that I am creating in coldfusion, which returns columns looking like this - score, score_1, score_2, item_id, title etc...
I want to write another query where it checks which one of the 3 columns that is score, score_1, score_2 value is greater and alias it as score. In this query I want to order the results by score desc. I tried couple things using case but not quite able to get to it. Any thoughts are appreciated. Thank you.