Fa cosi

select count(*) from tab1 where id in (select num from tab2 where id = 1)<