dbTalk Databases Forums  

Deleting Duplicate Data Records

comp.databases.paradox comp.databases.paradox


Discuss Deleting Duplicate Data Records in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chuck [Sbc\)
 
Posts: n/a

Default Deleting Duplicate Data Records - 08-22-2006 , 06:03 PM






I am trying to reduce data from a mini-marathon.
I have 4 tables each with Two Alpha fields.
Field1 contains the code number of a runners "Toe Chip" (An Electronic ID
chip - A7field).
Field2 contains the time of day "hh:mm:ss.
As the runners pass the sensor, the chip number and time of day is recorded
by the hardware.
Problem: Runners often wander back thru the chute thereby creating a second
(or more) record.
Is there a query method that will take the first value received and reject
all others *without* changing the order of the codes?
I have created another column which I have numbered the arrival order so I
can re-arrange the data after a query.
Any suggestions?



Reply With Quote
  #2  
Old   
Ed Nash
 
Posts: n/a

Default Re: Deleting Duplicate Data Records - 08-22-2006 , 08:02 PM






Chuck [Sbc) wrote:
Quote:
I am trying to reduce data from a mini-marathon.
I have 4 tables each with Two Alpha fields.
Field1 contains the code number of a runners "Toe Chip" (An Electronic ID
chip - A7field).
Field2 contains the time of day "hh:mm:ss.
As the runners pass the sensor, the chip number and time of day is recorded
by the hardware.
Problem: Runners often wander back thru the chute thereby creating a second
(or more) record.
Is there a query method that will take the first value received and reject
all others *without* changing the order of the codes?
I have created another column which I have numbered the arrival order so I
can re-arrange the data after a query.
Any suggestions?


Try either of these:

Using QBE

Quote:
Field1 | Field2 |
Check | CALC MIN AS first_time |

Using SQL

SELECT DISTINCT field1, MIN(field2) AS first_time
GROUP BY field1
ORDER BY field1


Reply With Quote
  #3  
Old   
Chuck [Sbc\)
 
Posts: n/a

Default Re: Deleting Duplicate Data Records - 08-22-2006 , 11:58 PM



Ed
I'm embarrassed! I couldn't see the forest for the trees! The only
modification to your suggestion is to sort on the time!
Thanks for the wake up call!
Chuck



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.