I'm trying to get the min value from the table by comparing four adjacent columns (Date-1 to Date-4) in that table and updating the min value in the final column. But I'm receiving only NULL as the min value instead of getting the min value from four columns.
I'm using case for comparing the columns.