The code is error free. The question is about performance. By happy, the machine is still not smart enough to transform the unstructerd question in answer on his own. You have something to do and think about it. Some advices: - Break up your research into smaller parts. Eg extract the missings to a smaller table to do more research on. The pre-req is this number and size must fit in your environment. The smaller the dataset to work on the easier it becomes. (Same as fugues) - Understand the physical effects of your request Indeed Check with you ORA DBA (as LinusH) already stated. If there are views (disadvantage), indexes(advantage) you could imagine what the DBMS internally wil do. - Sequential/Random Normally invisible as hidden behind the SQL. When the effect wil be an access to the whole database touching every record. Try to have it done just once and sequential. When the effect will be accessing more than (rule of thumb) as 10% still do it sequential once, is it less random (indexed) would be faster. Getting some answers, iterate this as new questions will need to solved.
... View more