Greetings, I ran a query on a table to check for duplicates as follows:
SELECT tbl_Final.phone_num, Count(tbl_Final.phone_num) AS CountOfphone_num
FROM tbl_Final
GROUP BY tbl_Final.phone_num
HAVING (((Count(tbl_Final.phone_num))>1));
The query will return two rows, phone_num and count of the duplicates.
Now is there anyway I can create a delete query or any other query that will delete all but one of a particular phone number?
Again if the query I run checks for duplicate phone numbers and I get one of: 8168887777 with a count of 8 (is in the table 8 times, and another phone number of 8167778888 with a count of 3.........is there a query I can make to delete all but one of each phone number?
SELECT tbl_Final.phone_num, Count(tbl_Final.phone_num) AS CountOfphone_num
FROM tbl_Final
GROUP BY tbl_Final.phone_num
HAVING (((Count(tbl_Final.phone_num))>1));
The query will return two rows, phone_num and count of the duplicates.
Now is there anyway I can create a delete query or any other query that will delete all but one of a particular phone number?
Again if the query I run checks for duplicate phone numbers and I get one of: 8168887777 with a count of 8 (is in the table 8 times, and another phone number of 8167778888 with a count of 3.........is there a query I can make to delete all but one of each phone number?