Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Compare data and return the different columns

$
0
0

Good Afternoon,

I am trying to compare the data in two tables and return only the columns and data where there is a difference.

I have a compare script which checks every column in the two tables against each other, but as there are 200 columns in the tables it is tricky to see which column has a difference.

So in my result set if coulum N is the differenct I would only want to return column N from both tables in the result set.

I hope that this all makes sense?.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>