I would like to know how to compare two database table records and return the results into separate table.
For example, I have a total of 6 columns in each table A B C D E F. However, I'm only comparing on the records in columns A, B, & C
If there is a match in in each table of columns A B C I would like the results to be outputted to new table (.csv file etc) for the row that matched
Let me illustrate:
In Table A you can see 6 columns, A B C D E F. The table has the following rows:
Table A
Table B also has 6 columns A B C D E F
From the tables you can see that only one row has match on A B & C i.e xx, PP, dd.
I would like that row to be outputted to a table with all the records in that row ie. xx PP dd TYH ADF AD


UNIQUEconstraints on (A, B, C), or there can be multiple rows with the same combination?