Click here to Skip to main content
15,902,893 members
Home / Discussions / Database
   

Database

 
GeneralRe: SELECT MAX Pin
RichardBerry27-Aug-07 22:00
RichardBerry27-Aug-07 22:00 
GeneralRe: SELECT MAX Pin
RichardBerry27-Aug-07 22:12
RichardBerry27-Aug-07 22:12 
GeneralRe: SELECT MAX Pin
Chris Meech28-Aug-07 7:35
Chris Meech28-Aug-07 7:35 
GeneralRe: SELECT MAX Pin
RichardBerry29-Aug-07 1:43
RichardBerry29-Aug-07 1:43 
Question"Set Default" doesn't work [modified] Pin
Meysam Mahfouzi27-Aug-07 4:01
Meysam Mahfouzi27-Aug-07 4:01 
AnswerRe: "Set Default" doesn't work Pin
Meysam Mahfouzi27-Aug-07 5:23
Meysam Mahfouzi27-Aug-07 5:23 
Questionlarge scale inserts duplicate checking Pin
brsecu27-Aug-07 3:34
brsecu27-Aug-07 3:34 
AnswerRe: large scale inserts duplicate checking Pin
Michael Potter27-Aug-07 5:17
Michael Potter27-Aug-07 5:17 
The answer to your question would depend on where your duplicates can exist. Are there duplicates inside of the individual databases or only between the two databases? If it is the latter you can use a strategy like this:

1) Copy over 1 table to a new table.
2) The new table should have indexes on Name & Address (to avoid mulitple table scans). For speed you can create the indexes after the copy.
3) Create an insert statement qualified by the non-duplicates.
INSERT INTO [NewTable]
    (Name, Address, Email, etc...)
SELECT
    s.Name, 
    s.Address, 
    s.Email, 
    s.etc...
FROM 
    [2ndTable] s
LEFT JOIN 
    [NewTable] n
    ON ((s.Name = n.Name)&&(s.Address = n.Address))
WHERE
    n.Name IS NULL

QuestionSetting up POS [modified] Pin
dptalt27-Aug-07 3:21
dptalt27-Aug-07 3:21 
QuestionSQL Vs Oracle Pin
Ahamed Azeem27-Aug-07 2:43
Ahamed Azeem27-Aug-07 2:43 
AnswerRe: SQL Vs Oracle Pin
andyharman27-Aug-07 22:49
professionalandyharman27-Aug-07 22:49 
QuestionSQL Replication Compatibility Pin
MatthysDT27-Aug-07 1:51
MatthysDT27-Aug-07 1:51 
AnswerRe: SQL Replication Compatibility Pin
MatthysDT27-Aug-07 4:07
MatthysDT27-Aug-07 4:07 
QuestionHow to change datatype of DataColumn Pin
Nouman Bhatti27-Aug-07 1:35
Nouman Bhatti27-Aug-07 1:35 
AnswerRe: How to change datatype of DataColumn Pin
Blue_Boy27-Aug-07 1:42
Blue_Boy27-Aug-07 1:42 
QuestionLEFT JOIN ??? Pin
Halawlaws26-Aug-07 22:44
Halawlaws26-Aug-07 22:44 
AnswerRe: LEFT JOIN ??? Pin
Colin Angus Mackay27-Aug-07 0:55
Colin Angus Mackay27-Aug-07 0:55 
GeneralRe: LEFT JOIN ??? Pin
Halawlaws27-Aug-07 1:41
Halawlaws27-Aug-07 1:41 
GeneralRe: LEFT JOIN ??? Pin
Colin Angus Mackay27-Aug-07 2:27
Colin Angus Mackay27-Aug-07 2:27 
GeneralRe: LEFT JOIN ??? Pin
Halawlaws27-Aug-07 4:05
Halawlaws27-Aug-07 4:05 
AnswerRe: LEFT JOIN ??? Pin
Michael Potter27-Aug-07 5:31
Michael Potter27-Aug-07 5:31 
GeneralRe: LEFT JOIN ??? Pin
Halawlaws27-Aug-07 5:56
Halawlaws27-Aug-07 5:56 
GeneralRe: LEFT JOIN ??? Pin
Michael Potter27-Aug-07 6:01
Michael Potter27-Aug-07 6:01 
GeneralRe: LEFT JOIN ??? Pin
Halawlaws27-Aug-07 20:05
Halawlaws27-Aug-07 20:05 
GeneralRe: LEFT JOIN ??? Pin
Michael Potter28-Aug-07 3:24
Michael Potter28-Aug-07 3:24 

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.