Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8992289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:55:09+00:00 2026-06-15T22:55:09+00:00

This is a theoretical scenario, and I am more than amateur when it comes

  • 0

This is a theoretical scenario, and I am more than amateur when it comes to large scale SQL databases…

How would I go about inserting around 2million records into an existing database off 6million records (table1 into table2), whilst at the same time using email de-duplication (some subscribers may already exist in site2, but we don’t want to insert those that already exist)?

I understand how to simply get the records from site 1 and add them into site 2, but how would we do this on such a large scale, and not causing data duplication? Any reading sources would be more than helpful for me, as ive found that a struggle.

i.e.:
Table 1: site1Subscribers

site1Subscribers(subID, subName, subEmail, subDob, subRegDate, subEmailListNum, subThirdParties)

Table 2: site2Subscribers

site2Subscribers(subID, subName, subEmail, subDob, subRegDate, subEmailListNum, subThirdParties)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:55:10+00:00Added an answer on June 15, 2026 at 10:55 pm

    I would try something like this:

    insert into site2Subscribers
    select * from site1Subscribers s1
    left outer join site2Subscribers s2
        on s1.subEmail = s2.subEmail
    where s2.subEmail is null;
    

    The left outer join along with the null check will return only those rows from site1Subscribers that have no matching entry in site2Subscribers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is more of a theoretical question than an actual problem I have. If
This is a more theoretical question, not a specific scenario: Let's assume, we have
This is a theoretical question more than anything else. In the case of C#
This may be more of a theoretical question. I have a scenario wherein there
This pertains to Google App Engine, using Java. (threadsafe in this scenario would be
Well I assume this is more theoretical question for those who familar with hft.
I have been struggling to find an answer to this theoretical question, even tho
this is just theoretical question. I use JDBC with my Java applications for using
I'd like to ask your opinion on this. This is a theoretical question. I'm
This is a purely theoretical 'what if' question, so no pressure to rush to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.