This query is for quality check on a TableAB- query checks that there is no duplicate row with the same values of ColumnA and ColumnB.
ColumnA ColumnB ColumnC ColumnD
2 6 22 23
2 6 26 42
This case above should not happen. The query needs to return such records if they exist.