0

I want to compare two table records. and find which one is not matching. I am not looking for which record is not found in one table

Example: I have 2 databases called DBLive and DBLiveBackup, both with the same tables. One of the table is ProductDetails.

It has 15 columns; I want to compare the DBLive with DBLiveBackup database where records are not matching.

Update

I found this link. I almost looking for the same. But I cannot compare it one by one column like below code. because I have to compare whole database.

SELECT A.*, B.* 
FROM TABLEA A
INNER JOIN TABLEB B ON A.MSISDN = B.MSIDN
WHERE A.firstname != B.firstname 
   OR A.lastname != B.Lastname
Liam neesan
  • 2,282
  • 6
  • 33
  • 72

0 Answers0