Mike John (7/31/2012)
In your original question you did say the records had to be INSERTED in to the new table, which is what my statement did.
Can you post full DDL of both tables, and some sample data that shows exactly what you are trying to do.
Do you want to INSERT new rows into emp2, UPDATE existing rows, or a combination of the two?
Precisely put. In the OP's favour, I have noticed that those who are new to SQL Server do not readily distinguish between the meanings of the words 'Insert' and 'Update'...
Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this
If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.
Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.