Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL query that will take from 1 table and place into another

Status
Not open for further replies.

adamr1001

MIS
Jul 25, 2001
166
CA
Hi,

I need an SQL query that will take data from one table, and place it into an existing table, without overwriting the records that already exist, defined by a unique field.

this is what i've got so far (feel free to correct if its not right (i am a beginner):

SELECT <Data/column i want> INTO <table to be modified
FROM <source table> WHERE ? ;

what is the most efficient code to place in the Where section. Thanks in advance to anyone who can bail me out.

Adam.

 
First of all, an append query (which is what you are trying to do with &quot;insert into&quot;) adds records to the table. Nothing is overwritten.

Give us more information about the tables and fields. Is your primary key autonumbered?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top