結果 : sql query to fetch data without duplicates