Link to home
Start Free TrialLog in
Avatar of JYLWest
JYLWestFlag for South Africa

asked on

Select into tb.column from different tb.column

I have two tables, both contain employee_no and other column's, I need to 'copy' only the employee_no column into an existing tb, so that it can be updated with new information, how would I go about doing this?
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

You mean something like:

   INSERT INTO [Table2] ([employee_no])
       SELECT [employee_no] FROM [Table1]

?
I think you want to UPDATE with JOIN ...
see this article: https://www.experts-exchange.com/A_1517.html
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JYLWest

ASKER

managed to come right but very close to where i needed to be.