How to select the maximum value in a record among columns?
Hi,
I have a table with columns e.g. columnA (default to 1), columnB (default to 2), columnC (default to 3), columnD (default to 4), and another column named HIGHEST_VALUE. Column A, B, C or D is nullable column.
What is the best way to obtain the maximum value among columnA to D and populate this maximum value in HIGHEST_VALUE column. I understand MAX( ) function can be used but it is more for getting maximum value among records, not within one single record.
Any suggestions or comments would be greatly appreciated.
Thanks in advance!