I have the below query which i want to tune as the query takes more time to run. Please help me out.
select info_id
from info_table
where info_id not in (select info_id
from some_table
where info_id is not null)
AND rownum <= 1000 ;
The innerquery is returning millions of rows and hence the problem.