Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to check a table for duplicates???
Message
From
12/02/2002 15:28:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Best way to check a table for duplicates???
Miscellaneous
Thread ID:
00619081
Message ID:
00619081
Views:
55
Hello once again. It's your for neighborhood novice back for advice.

I have a table that has sale orders. Sometimes the customer does 2 or 3 sales. I would like to check the table for the same customer then combine those records into 1, deleting the others. The cost would then be record1.cost + record2.cost + record3.cost.

I started to use a temp table to compare the two but I keep running into walls. For instance, how to add the cost when I'm comparing the exact same tables to each other. When comparing the two tables, if I have 3 similar records on each one(e.g. same customer name), would the reccount() = 3 or 9?

I would appreciate any help and thanks,
Sunshine
Next
Reply
Map
View

Click here to load this message in the networking platform