Solved

How do you delete duplicate records in Paradox 7

Posted on 1997-12-09
4
634 Views
Last Modified: 2009-12-16
I am using paradox 7 I have inherited a database which
has about 6500 enteries. I have noticed that there is a number of duplicate records but I can not see a way to
get rid of these. There is three keys which I would like to check (phoneres, Fname and Lname) if these three fields combined are identical I want to get rid of the entire record.
0
Comment
Question by:paulanderson
  • 2
4 Comments
 

Author Comment

by:paulanderson
ID: 1025673
Adjusted points to 100
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 100 total points
ID: 1025674
I am not a Paradox guru, but let me describe a general technique that you may be able to use.  It involves a multiple step process.

1). You create a view that is sequenced on your duplicate keys, grouped by your keys, and you create a calculated field that is a count of each member in an identical group.

2) You can now identify your duplicated records as only those with a group count greater than one.

3) You can create another view with only dupe keys. Then use that view to join/delete against your original table.

4) If you want to insert back one of the duplicates, make sure you include all the original columns in you table, then after deleting all dupes, you can insert back one from each duplicated group by using your sequenced and grouped view from step one.
0
 
LVL 1

Expert Comment

by:cemaylor
ID: 1025675
You could perhaps save a database file, and do the indexing as proposed by cymbolic, do a sequential pass thru the file, comparing current record to last record, and dump any which are dup's.

This requires no counting and requires only one pass through the data.

Cheers!

Chris Maylor

0
 
LVL 1

Expert Comment

by:cemaylor
ID: 1025676
You could perhaps save a database file, and do the indexing as proposed by cymbolic, do a sequential pass thru the file, comparing current record to last record, and dump any which are dup's.

This requires no counting and requires only one pass through the data.

Cheers!

Chris Maylor

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now