結果 : sql select distinct then join