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 6982133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:14:52+00:00 2026-05-27T18:14:52+00:00

I am working on databases and now I need some advice’s from you guys..

  • 0

I am working on databases and now I need some advice’s from you guys..

I have 2 databases with many rows and columns and these db’s contain addresses of customers.
Lets name the databases a A,B.

Now the problem is I have to search the addresses of B in A using a primary key lets say email.

If the address exist then its ok.
Else we have to insert the address in to the other database.

Please tell me how can we do this and which language we can use to do this??

Thank you very much for your time to read my question.

  • 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-05-27T18:14:53+00:00Added an answer on May 27, 2026 at 6:14 pm

    I would do it like this:

    INSERT INTO A (a, b, c, d)
    Select  a, b, c, d
    From    B
    Where   id not in (Select id from A)
    

    This saves you from getting the data in to local variables and/or temp tables. The performance should be better.

    The important part to realize is that you can hard code values in the select. The order in which you list the columns (insert line) must match the order in which you list the columns in the select line.

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

Sidebar

Related Questions

I am working on databases and now I need some advice's from you guys..
I'm working on databases that have moving tables auto-generated by some obscure tools. By
I need your advice. We have an already working web resource management application, we
Ok now I am confused. I have been getting advice from SO users on
I just need some advice about using tags. I'm working on a website right
i'm working on Linq To Sql,WPF and i have a database now i need
I have been working on VB6 database desktop programming, but now a client is
I have been working with relational databases for sometime, but it only recently occurred
I'm fairly new to working with relational databases, but have read a few books
In Mongo my understanding is that you can have databases and collections. I'm working

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.