create table Test(id integer, title varchar(100));
insert into Test(id, title) values(1, "A");
insert into Test(id, title) values(2, "B");
insert into Test(id, title) values(3, "C");
insert into Test(id, title) values(4, "D");

create table Test2(id integer, id2 integer);
insert into Test2(id, id2) values(1, 1);
insert into Test2(id, id2) values(2, 3);


Ağağıdaki kodu daha iyi anlayabilmen için yukarıda tablolarını oluşturdum.

select * from Test t1 where id not in (select id2 from Test2)