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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:14:38+00:00 2026-06-03T03:14:38+00:00

Hi I am stuck here need your advice. I have a server with multiple

  • 0

Hi I am stuck here need your advice. I have a server with multiple DB’s.
Now I want to map if the data in one table of 1 db is equal to the data in another db with same table name

can anyone suggest how to do that?? thanks in advancve

  • 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-03T03:14:39+00:00Added an answer on June 3, 2026 at 3:14 am

    depends on what you need to map.
    If you just want to know the differences by primary key, I would try a full join on the PK, so it will tell you records that exist on A but not on B and records that exists on B but not on A. Like this:

    create table DB_A(id int)
    create table DB_B(id int)
    
    insert into DB_A values (1)
    insert into DB_A values (2)
    
    insert into DB_B values (2)
    insert into DB_B values (3)
    
    select DB_A.ID as 'Exists on A but not on B', DB_B.id as  'Exists on B but not on A'
    from DB_A full join DB_B on DB_A.id=DB_B.id 
    where DB_A.id is null or DB_B.id is null  
    

    if you need more than that like compare the values of all columns, I suggest you to use a data compare tool. It would not be so strait forward to do it using just SQL

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

Sidebar

Related Questions

Got stuck here: http://jsfiddle.net/UFkg8/ Right now the animation is top-down. What do I need
Kinda stuck here... I have an application with lets say 5000 rows of data
Hey, I'm really stuck with my project here... I need to know when any
A little stuck here. I have a simple question I guess. Given the following
I am stuck here, any help would be appreciated. I have a listbox of
Sorrry guys, I'm stuck here. I have a few grids, I also have CollectionViewSource
i know this is basic but somehow i have been stuck here for some
I need your help and advice yet again! I'm trying to do a website
I need to select data from two table using a join. This is fairly
I am new to threads and in need of help. I have a data

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.