Hi All,
This might be the simplest question but not sure how could I go forward with this.
I have 5k jobs in Job Def table and keep clause is not defined. System is up and running from past 4 years.
I want to get the list of Jobs that were defined but not ran never.
```
select jd.* from JobDefinition jd where jd.UniqueId not in (select j.JobDefinition from Job j);
```
The above query gives the list of jobs in job def but not in job. The problem is server is timing out due to humongous size of Job table. Please suggest some optimal solution to get the results.
Many thanks in advance.