結果 : sql statement to check for duplicates