Click here to Skip to main content
16,005,162 members
Home / Discussions / Database
   

Database

 
AnswerRe: what is the differenece these two statements Pin
kubben15-Apr-07 14:51
kubben15-Apr-07 14:51 
QuestionBook in Stored Procedures [modified] Pin
silvioribeiro15-Apr-07 5:16
silvioribeiro15-Apr-07 5:16 
Questiondatagridview failed to insert record into database Pin
Tony_KT_Lau15-Apr-07 0:59
Tony_KT_Lau15-Apr-07 0:59 
QuestionImporting DataTable In SQL SERVER 2000 Pin
microuser_200014-Apr-07 11:07
microuser_200014-Apr-07 11:07 
AnswerRe: Importing DataTable In SQL SERVER 2000 Pin
Jerry Hammond15-Apr-07 4:46
Jerry Hammond15-Apr-07 4:46 
GeneralRe: Importing DataTable In SQL SERVER 2000 Pin
microuser_200015-Apr-07 8:55
microuser_200015-Apr-07 8:55 
Questionproblems in joining 2 tables together [modified] Pin
aren37214-Apr-07 2:00
aren37214-Apr-07 2:00 
AnswerRe: problems in joining 2 tables together Pin
kubben14-Apr-07 2:26
kubben14-Apr-07 2:26 
I am assuming that the problem you have is that some of the records in table2 already exist in table1. So your query would need to be:

insert into table1
select t2.* from
table2 t2
left join table1 t1 on t2.key = t1.key
where t1.key is null

I am assuming you have a column in both tables called key, most likely you call the column something else. The select statement will only give you the records in table2 that are not already in table1

Hope that helps.
Ben
GeneralRe: problems in joining 2 tables together Pin
aren37216-Apr-07 18:55
aren37216-Apr-07 18:55 
GeneralRe: problems in joining 2 tables together Pin
kubben17-Apr-07 2:13
kubben17-Apr-07 2:13 
Questionhow can I install my sql file intarget computer? Pin
ali_reza_zareian14-Apr-07 0:54
ali_reza_zareian14-Apr-07 0:54 
Questionis any query (in sql server) that i can export data ? Pin
B.A13-Apr-07 23:28
B.A13-Apr-07 23:28 
AnswerRe: is any query (in sql server) that i can export data ? Pin
Colin Angus Mackay13-Apr-07 23:52
Colin Angus Mackay13-Apr-07 23:52 
Questionhow can Bind ComboBox Pin
Ali el13-Apr-07 22:21
Ali el13-Apr-07 22:21 
AnswerRe: how can Bind ComboBox Pin
Christian Graus13-Apr-07 23:34
protectorChristian Graus13-Apr-07 23:34 
AnswerRe: how can Bind ComboBox Pin
Paul Brower17-Apr-07 10:26
Paul Brower17-Apr-07 10:26 
QuestionStored procedure in sqlserver..... Pin
Member 387988113-Apr-07 18:23
Member 387988113-Apr-07 18:23 
AnswerRe: Stored procedure in sqlserver..... Pin
andyharman16-Apr-07 1:30
professionalandyharman16-Apr-07 1:30 
QuestionGrabing info from table Pin
hahii13-Apr-07 11:16
hahii13-Apr-07 11:16 
AnswerRe: Grabing info from table Pin
Krish - KP16-Apr-07 17:52
Krish - KP16-Apr-07 17:52 
QuestionO/R-Mapping with OleDb compatibility Pin
dannyyy13-Apr-07 7:21
dannyyy13-Apr-07 7:21 
AnswerRe: O/R-Mapping with OleDb compatibility Pin
Pete O'Hanlon13-Apr-07 9:57
mvePete O'Hanlon13-Apr-07 9:57 
QuestionSql Server Pin
drc_no113-Apr-07 6:03
drc_no113-Apr-07 6:03 
AnswerRe: Sql Server Pin
nlindley713-Apr-07 6:14
nlindley713-Apr-07 6:14 
GeneralRe: Sql Server Pin
drc_no113-Apr-07 6:21
drc_no113-Apr-07 6:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.