Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding duplicate not working
Message
From
10/11/2003 12:50:36
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00848361
Message ID:
00848410
Views:
14
I do it in two steps
SELECT ssn, COUNT(*) as countssn ;
FROM sometabl ;
GROUP BY ssn ;
INTO CURSOR dupessns

SELECT custname, amt, ssn ;
FROM sometabl ;
WHERE ssn IN (SELECT ssn from dupessns) ;
ORDER BY ssn

>Thanks, that returned a count of how many. I don't suppose there is a way to list those returned rows with name and amt along with the found duplicate ssn?
>
>Thanks
>Nick Patel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform