Large rowset

G

Guest

I have a table(7 fields) which contains around 100,000 records. Within these
100,000 records, I know there are many duplicated rows. I have sample data
of around 10,000 records.

I have wrote a query to find out how many duplication I have:

SELECT [Find duplicates for Training_History-1].*
FROM [Find duplicates for Training_History-1] INNER JOIN
[Training_History-1] ON [Find duplicates for Training_History-1].[Learner
Field] = [Training_History-1].Learner;

Then I have wrote a distinct query to clean it up further:

SELECT DISTINCT [Find duplicates for Training_History-1].*
FROM [Find duplicates for Training_History-1] INNER JOIN
[Training_History-1] ON [Find duplicates for Training_History-1].[Learner
Field] = [Training_History-1].Learner;

This has de-duplicated the duplicated row set of 10,000 (sample data of
100,000)

Now I would like to update the orginal table with this clean data...???

Any ideas...?

Note****
There is no PK or no indexing what so ever on the table, and I HAVE to check
each and every field for duplication.

Please help me. I need to sort this out
 
J

John Spencer

If you are simply trying to get the unique records in the table why not use
SELECT DISTINCT *
FROM [Training History]

If you really need that in another table then you could copy the stucture of
your current table and turn the above into an append query. That should
give you a table with just the unique values. Then you can rename the table
(after checking it) to the original name. Then I suggest you will want to
compact your database to recover the space.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Delete Dups Query Failing 3
Could not delete from specified tables. 3
Help with a query 2
Duplicates 4
Duplicate Query 7
Create a distinct Join 3
distinct and yet duplicates 6
delete duplicates 1

Top