Viewing 6 posts - 91 through 96 (of 96 total)
Thanks both!
They work well. I now have a list unique per each person's address, whic is thebest I could hope for from such a table.
I can now work on...
November 26, 2009 at 6:39 am
Can you tell me your table name, and give me some more examples.
Also, can you tell me what happens when you execute the script?
November 26, 2009 at 5:47 am
Ok.. then if ID is a primary key, then the script will work, leaving you one record for Banana.
Just change "MyTable" to your table name.
November 26, 2009 at 4:55 am
Do you want BOTH Banana records deleted, or just one?
I will assume that you wish to keep one.
This script will only work if ID was a primary key.
delete T1
from MyTable...
November 26, 2009 at 4:45 am
Thanks for the replies. I am jus tworking through them now.
A more realistic scenario of my data is as follows:
ID, Cust_id, Title, First, Last, Add1, Town, Prod1, Prod2, Prod3,...
November 26, 2009 at 3:56 am
If the records are completely identical, and you wish to be left with just one of each, try this:
delete T1
from MyTable T1, MyTable T2
where T1.dupField = T2.dupField
and T1.uniqueField > T2.uniqueField
Is...
November 26, 2009 at 2:26 am
Viewing 6 posts - 91 through 96 (of 96 total)