結果 : how to avoid nested select in sql