結果 : join three tables in sql using subquery