Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicates - Multiple fields
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01436141
Message ID:
01436149
Views:
48
>>The code is OK. You can also use a variation of it:
>>
>>SELECT last_name, first_name, alt_custno, paquinnumb FROM customer ;
>>	inner join (select LastName, FirstName, count(*) as Dups from Customer group by LastName, FirstName having count(*) > 1) X
>>on Customer.LastName = X.LastName and Customer.FirstName = X.FirstName
>
>I Like !!!
>
>Thanks!!!

You're welcome. You may compare output of sys(3054,11) in both cases to find more performant variation.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform