Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

delete duplicate records from table with two keys

Avatar of pkromer
pkromer asked on
Microsoft Access
5 Comments1 Solution359 ViewsLast Modified:
Hi. I need to delete records from a table which should have two keys: OrderNumber and LocalSKU.

As of now, the table has many duplicates with both those fields. What I need to do is delete dupes so I end up with just one record for each time the record contains a OrderNumber and the LocalSKU unique.

I know I'm not explaining this right so here is a sample of the data...

OrderNumber LocalSKU
89120      141
89120      141
89120      141
89201      490
89201      490
89201      490
89201      490
89201      490
89201      490
89201      490
89201      490
89201      490
89525      2883
89525      2883
89726      446
89726      446
89726      447
89726      447
89726      8212
89726      8212
91989      601
91989      601
92138      1756
92138      1756

As you can see, OrderNumber 92138 (for example) has 2 records. I need to have just one record. Since I can't go off one primary key field, I don't know how to do this. Thanks for your help in advance.
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers