結果 : how to avoid subquery in sql