-- stat и clc.
create table clc (
user_id int
);
insert into clc values (1), (2), (3);
create table stat (
user_id int
);
insert into stat values (1), (3);
select * from clc
where not exists (select user_id from stat where stat.user_id = clc.user_id);
select clc.*
from clc
left join stat on stat.user_id = clc.user_id
where stat.user_id is null;