Compared to the solution with INNER JOIN this seems to have better performance as there is no need to deduplicate the subquery result before use.