declare library.dbo.phones as t1 select * from [library].dbo.table_1 as t2 where t2.onoma Not like t1.name
declare library.dbo.phones as t1 select * from [library].dbo.table_1 as t2 where t2.onoma Not in t1.name
select * from [databasename].dbo.table1 t1 where not exists ( select * from [databasename].dbo.table2 t2 where t1.name = t2.onoma )
Not in
select * From [databasename].dbo.table1 where Column not in(select column from [databasename].dbo.table2 )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)