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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:29:51+00:00 2026-05-24T19:29:51+00:00

Assumptions: The same query is ran on both tables Both tables reside in different

  • 0

Assumptions:

  • The same query is ran on both tables
  • Both tables reside in different schemas
  • Database tables are a part of may or may not be the same
  • If Databases are not the same, there is no guarantee that their version or patch level
  • The order of data is the same across both tables. Data is sorted
  • It is possible that one table has more columns then the other
  • It is possible that one table has more rows then the other

As i see it there are 2 distinct challanges

  • Running comparison
  • Producing a legible report outlining the differences

I wonder if the following approach would work

If (table1 and table 2 have the same number of columns) 
  For every row found in table1 check 
     If that same identical row exists in table2
       And if it does not due to some column mismatch
          Find the closes match possible and report column differences
            If best match can be discovered, report column difference, else
               report can result is ambiguous
                  ...

Is this a reasonable approach? Given some of the Assumptions above, can you recommend an alternative?

  • 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-24T19:29:52+00:00Added an answer on May 24, 2026 at 7:29 pm

    My answer would be to use red-gate SqlCompare.
    They have a schema and a data compare tool, there tools also allow you to generate script to make one DB look like the other.

    I have no connection with red-gate other then as a customer

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

Sidebar

Related Questions

I'm trying to build a query for a medical database that counts the number
Obviously there are security reasons to close a wireless network and it's not fun
Do not make assumptions about the contents of the player identifier string. Its format
I asked the same question in a different way and the question was closed
Here are my basic assumptions: Wcf executes my service operation methods on IOCP threads
What are (if any)the implied assumptions or restrictions and the differences of designing like:
I was hoping someone could validate my assumptions before I recommend that my client
I am in the process of writing some validation code based on these assumptions:
I'm confused. Answers to my previous question seems to confirm my assumptions. But as
Given an unsorted integer array, and without making any assumptions on the numbers in

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.