johnmerlino
Registered User.
- Local time
- Today, 13:28
- Joined
- Oct 14, 2010
- Messages
- 81
The table did start with unique ids. However, I had to create a new table to bring a column from one table with a column from another table. This query caused duplicate ids:
Rather than bring over this "PrepareForDuplicateCheck.id" from the other table, is there a way to create unique id as in your alter table statement? Keep in mind what's above is a select statement.
Code:
SELECT possibles.fullname AS fullname, PrepareForDuplicateCheck.addresses, PrepareForDuplicateCheck.id INTO final_output
FROM possibles, PrepareForDuplicateCheck
WHERE (INSTR(PrepareForDuplicateCheck.names_1, possibles.fullname) > 0)
Or
(INSTR(PrepareForDuplicateCheck.names_2, possibles.fullname) > 0);