I am working on databases and I need some advice 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
Jignesh TrivediPosted Jan 5, 2012, 1:43 AM
why are you not use any tool for same.
http://www.sql-server-performance.com/2001/database-comparison-sp/
http://www.sql-server-tool.com/
hope this help.
Sam HobbsPosted Dec 26, 2011, 8:56 PM
I don't see why you have to search for addresses. Just search for records that don't have an address.
Or are you being ambiguous in saying "address"? When you say address, you mean email address, correct? If not then you need to specify what you mean by address.
subash koutilyaPosted Dec 26, 2011, 8:15 PM
Sam HobbsPosted Dec 26, 2011, 6:39 PM
You say you "have to search the addresses of B in A using a primary key lets say email" .... "If the address exist then its ok". That is a little confusing becasue if you compare the emaila ddresses and you only want the records where there is not an email adddress, then all the records in one table without an email address will match all the records in the other table without an email address.
So the question is a little confusing.
Tables csn have only one primary key. Are you sure that the primary key is the email address? Probably not. Probably you want to match on the primary key which is not the email address or something else.