473,396 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Need to Dedupe a table

Hello,

I am new here, and pretty new to access. I was thrown into the fire a bit here at my new job and I have a large database of about 12,000 records. I simply need to find all the duplicate records and delete them.

Is there a way to take that down farther, and for instance delete records with ONLY the same social security number.

Thanks!!
Oct 4 '07 #1
2 3699
bump!

please help :(
Oct 5 '07 #2
Scott Price
1,384 Expert 1GB
As I see it, you are in a bit of trouble!

If a given record is duplicated exactly, that doesn't present so much trouble, however, trying to only delete records based on duplicate SSN's is going to run into some data integrity issues, such as: how are you going to determine whether or not there is any other data that IS different, and if so, which record of the two duplicates should then be kept?

First of all you need to lay out this scenario in your own mind, then check the existing data to see if there are, in fact, such records. Then decide with supervisors, etc. what to do about it!

Afterwards, the process of doing the delete will look something like this:

Always work on a COPY of the real tables until you are sure that your process will work as you want it to!

Create a SELECT query that pulls the duplicates. (Use the Distinct keyword for this). Change the SELECT query to a Make Table query (right click on the query in design view and choose Query Type>Make Table). Create a separate, temporary table to hold these data by running your Make Table query. Open your original table, delete all entries. Copy and paste into the original table from the temporary.

Regards,
Scott
Oct 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: B. Fongo | last post by:
I learned MySQL last year without putting it into action; that is why I face trouble in formulating my queries. Were it a test, then you would have passed it, because your queries did help me...
9
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
3
by: ChadDiesel | last post by:
Hello everyone. I need some advice on table structure for a new project I've been given. One of our customers sends us an Excel spreadsheet each week containing their order. Currently, someone...
11
by: my-wings | last post by:
I think I've painted myself into a corner, and I'm hoping someone can help me out. I have a table of books (tblBooks), which includes a field (strPubName) for Publisher Name and another field...
11
by: Alan Mailer | last post by:
A project I'm working on is going to use VB6 as a front end. The back end is going to be pre-existing MS Access 2002 database tables which already have records in them *but do not have any...
1
by: barny | last post by:
Hi all, I have been trying to merge two access tables together all morning with no succsess. In table one I have Account Number|Return1|Return2|Return3| M1234567 | P9832 | Q1234 | P4322 |...
1
by: asinghy | last post by:
Hello, I am planning to make one dedupe login to find already existing phone numbers in my data base. Details: My database has one table " data" in which i have various fileds including ...
3
by: klbachrodt | last post by:
Hi all - I've been browsing this forum for a while now, looking for help, and finally decided to join and ask my question, since I'm not terribly good at writing SQL queries in Access. Here is my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.