Deleting Duplicate Records in a Query
- From: Burton <Burton@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 18 Mar 2009 08:51:52 -0700
I know there are numerous posts about deleting duplicate records, but I am
too big of a novice in sql and Access to adapt their questions/answers to my
problem. I have 1 table called structure_existing_area_3 that has duplicate
records. I need to get rid of these duplicates.
They are considered duplicates if two fields, "right_fid" and "length" are
both the same. The other fields may have different values, but if these two
fields match for two different records, I need to delete one of the records.
Just to be clear (and redundant), following is an attempt to re-create an
example of a duplicate record.
left_id---right_fid---length
---1--------2----------3
---5--------2----------3
Because both fields match at the same time, it is considered a duplicate. In
this instance, I want to get rid of one of the records (doesn't matter which
one)
This is not a duplicate record:
left_id---right_fid---length
---1--------5----------3
---5--------2----------3
If anyone could explain, step-by-step, how to do this in design view, or
write out the sql statement for me, it would be greatly appreciated. Again, I
am fairly inept at Access and sql, so please be detailed and clear.
Thanks in advance
.
- Follow-Ups:
- Re: Deleting Duplicate Records in a Query
- From: Roger Carlson
- Re: Deleting Duplicate Records in a Query
- From: Roger Carlson
- Re: Deleting Duplicate Records in a Query
- Prev by Date: RE: Criteria using Like
- Next by Date: RE: Crosstab Query Calculation
- Previous by thread: Disappearing Queries
- Next by thread: Re: Deleting Duplicate Records in a Query
- Index(es):
Relevant Pages
|