I have two databases ABC and XYZ with the same table structure, but different data.
I want to compare the values of col1, col2, col3, col4 from tbl_123 from both databases, and return an additional column RESULT as 1 if values in both tables are same and 0 it they are not.
col1 is the primary key in both tables, and the other columns are nullable.