Maybe like this:
update MyTable
set IMT_Status = coalesce(nullif(VALUE_NEW, ''), nullif(VALUE_OLD, ''))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi team
i have this table where the status are present in the table.
i have three status columns Value_new/Value_old/IMNT_Status
i need to update the IMT_Status whenever the value_new/Value_old column get updated., how do i update this IMT_Status for the given logic
please share the logic
input table
Output table (desired o/p)
Maybe like this:
update MyTable
set IMT_Status = coalesce(nullif(VALUE_NEW, ''), nullif(VALUE_OLD, ''))