I want to compare two columns in one table.
Col_1 has more data than col2 and I want to find out
which data not exist in col2.
Could you tell me where my code is wrong?
select distinct t1.col_1 from table1 t1
where t1.col_1 NOT IN (
select distinct col_2 from table1)
Thanks a lot
Col_1 has more data than col2 and I want to find out
which data not exist in col2.
Could you tell me where my code is wrong?
select distinct t1.col_1 from table1 t1
where t1.col_1 NOT IN (
select distinct col_2 from table1)
Thanks a lot