We are moving data from table1
to table2
. I need to create a reconciliation report if the data in table1
exists in table2
.
Example:
val df1 = """(select col1, col2, col3, col4 from table1)"""
val df2 = """(select col21,col22,col23,c24 from table2)"""
Now I need to check if the data in table1 exists in table2 and write to a report if it is missing.