Forum Moderators: open
alter table A add column ONE datatype;
alter table A add column TWO datatype;
alter table A add column THREE datatype;
SELECT
ONE,
TWO,
THREE
INTO
A
FROM
B
where
A.primary_key = B.primary_key
If this isn't clear I can try to simplify, but basically you need to alter one table and add the columns from the other table.
Then to populate the new fields on the table you use a "Select into" statement. This statement will grab data from one table and insertI added a where clause that will look for matching unique ids I am assuming you have corrolating ids that can match the records up.