There are two table which am joining, but unable to find duplicates properly:
Below are 2 input tables:
There are two table which am joining, but unable to find duplicates properly:
Below are 2 input tables:
It looks like you want to eliminate duplicates, which you can do using select distinct
:
select distinct t1.id_number, t1.id, t2.id_type, t2.id_value
from table1 t1 join
table2 t2
on t2.id = t1.id;