Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicate records
Message
 
 
To
25/07/2000 10:53:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00396583
Message ID:
00396593
Views:
9
>Hi:
>
>I want to list duplicate records that are violating my primary key of sin+dtos(add_date) + add_time form my employ table.

Off the top of my head
SELECT cnt(sin) as dupcnt, sin+dtos(add_date) + add_time as pkey ;
  FROM sheenatable ;
  ORDER BY 1 DESC ;
  GROUP by 2 ;
  INTO CURSOR cDuplicates
Then look for any items with dupcnt > 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform