I'd like to select a value from COL_B as COL_A based on conditions in COL C,D & E. I am trying to avoid using an update query. Similar to a nested IF in Excel.
IF COL_C=TRUE AND COL_D=TRUE AND COL_E=TRUE
THEN SELECT COL_B AS COL_A
ELSE COL_A
I could just shove it into a temp table and update COL_A to COL_B based on the conditions, but I'd like to do it on the SELECT statement. Any ideas?