I'm trying to alter a table to add an additional column that has the last 3 digits of org_id
. I am doing this because software I am using cannot read 34000000000000000002
because of the size. I would like to turn 34000000000000000002
into 002
and put it in the new column. I thought something like below would work
alter table [org] add new_org_id integer value (select right(org_id,3));
I am very new at sql so I apologize if i'm not even close.