My tests give the same run rate. I'm trying to figure out that it's best to use join or subquery. I understand that much depends on the data, the indexes, and the DB itself, but I want to distinguish it so if the records in t1 are less than t2 then the subquery should be effective, but if on the contrary then join.
EXPLAIN ANALYSE SELECT *
FROM safety_policies
WHERE safety_policies.area_id IN (SELECT areas.id
FROM areas
INNER JOIN departments ON areas.department_id = departments.id);
EXPLAIN ANALYSE SELECT safety_policies.*
FROM safety_policies
INNER JOIN areas ON safety_policies.area_id = areas.id
INNER JOIN departments ON areas.department_id = departments.id;
safety_policies
depending on what is in the other two tables.