- Joined
- 5/5/06
- Messages
- 102
- Points
- 28
Andy said:9. Remove duplicates in an no key access database without using an array
Assuming this is referring to a MS Access database table with no key, a real quick and easy way of doing this is using a copy of the table structure.
You can then use these SQL statements.
Code:
INSERT INTO Table2(Field1)
SELECT DISTINCT Field1 From Table1
DELETE * FROM Table1
INSERT INTO Table1(Field1)
SELECT Field1 FROM Table2