I refactored a slow section of an application we inherited from another company to use an inner join instead of a subquery like:
WHERE id IN (SELECT id FROM
Optimizer didn't do a very good job. Usually they can be transformed without any difference and the optimizer can do this.