I have the following table schema:
create table SerialNo2(
IncarnationID_UID counter primary key,
Mark integer
);
Now I want to add a new column in the table, let's call it degree
. Given that I want to apply an update on production table, I will have to populate the degree
column based on the Mark
value for all the existing data in the SerialNo2
table. The rule for this is that
if Mark>90 then degree='A',
else degree='B'
How to write a conditional SQL insert that will accomplish the above function?