update column based on another column
548849Oct 7 2008 — edited Oct 8 2008Hi All,
I want to update column 2 in table A based on the update value in Column 1 and existing value in Column 1
suppose table1 has columns ID, col1 and col2
i want to update col2 based on value updated to col1 and comparing the existing value of col1 in table.
trying out decode, i think it should work.
Thanks.