結果 : how to get unique values in sql query without using distinct