Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- SELECT DISTINCT
Message
 
 
To
24/08/1999 09:31:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00257019
Message ID:
00257046
Views:
17
>SELECT DISTINCT * FROM ACCOUNTS gives me the non dup records from my accounts table. How do I get the dups using the same command? Is there something like SELECT NOT DISTINCT * FROM ACCOUNTS?
>
>Any suggestions or comments will be welcome, thank you.

This is one sample SQL statement I'm using in a project and works fine.

Hugo

===========
SELECT DISTINCTROW First(CALLS.User_Name) AS [User_Name Field], Count(CALLS.User_Name) AS NumberOfDups
FROM CALLS
GROUP BY CALLS.User_Name
HAVING (((Count(CALLS.User_Name))>1));
"My get up and go must've got up and went"
-Steve Tyler, Aerosmith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform