I have a table like this.
+-------------+-------+-------+-------+-------+-------+
| studentCode | term1 | term2 | term3 | term4 | term6 |
+-------------+-------+-------+-------+-------+-------+
I want to return the max value of terms in each rows.
like this:
SELECT studentCode, maxterm FROM my_tbl
how can I fill maxterm with my max value.
thanks…
Try:
Source