Home All Groups Group Topic Archive Search About

Updating table while importing

Author
3 Mar 2006 10:17 AM
Amu
Hi All,

I have a table like the below table

EmpNo    Skills
1             C++
2             Java

Now after 1 week get an udated table which is like

EmpNo    Skills
1             Java
2             Unix
3             ASP
4             SQL Server

I want to update the table for "EmpNo" 1 & 2  and at the same time i
want to insert values for "EmpNo" 3 & 4 .How can this be done.

Thanks
Anshul

Author
3 Mar 2006 12:00 PM
Tom Moreau
You need to do this in separate UPDATE and INSERT queries.

--
   Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON   Canada
www.pinpub.com
..
"Amu" <anshul.3***@gmail.com> wrote in message
news:1141381021.314387.119110@e56g2000cwe.googlegroups.com...
Hi All,

I have a table like the below table

EmpNo    Skills
1             C++
2             Java

Now after 1 week get an udated table which is like

EmpNo    Skills
1             Java
2             Unix
3             ASP
4             SQL Server

I want to update the table for "EmpNo" 1 & 2  and at the same time i
want to insert values for "EmpNo" 3 & 4 .How can this be done.

Thanks
Anshul

AddThis Social Bookmark Button