There are two files and the data looks like this:
file1
Col1 Col2
**A** 10
**B** 20
**C** 30
**D** 40
file2:
Col1 col2
**A** XYZ
**B** PQR
**B** QES
**C** UIY
**D** UUI
**D** HUI
**E** BIG
I want to join these two files on col1 1 ,but I want only those entries where we have one to one mapping only. The output shoul look like this:
file A (where we have match)
A 10 XYZ
C 30 UIY
file B (Where we don't found a one to one map)
col1 col2
B 20
D 40
AS B and D have multiple entries in file 2, so I don't want these records in my join result.