I need to fetch the maximum value from multiple columns in a single row. The row looks like this:
Col1 || Col2 || Col3 || Col4 ||
100 || 120 || 130 || 140 ||
100 || 130 || 130 || 140 ||
100 || 140 || 130 || 140 ||
I need to fetch max of these columns where col2=120 so that the result is returned as col4 value which is 140