Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to extract matching records
Message
From
09/08/2006 10:41:57
 
 
To
02/08/2006 02:32:47
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01142272
Message ID:
01144145
Views:
11
The first result can be achieved this way:

SELECT name FROM names HAVING COUNT(name)>1 GROUP BY 1

The second will use that same SQL in a subselect, like this:

SELECT name FROM names WHERE name in (SELECT name FROM names HAVING COUNT(name)>1 GROUP BY 1) ORDER BY 1

(I am using VFP 9. I don't know if the having clause is supported in VFP 6)
Previous
Reply
Map
View

Click here to load this message in the networking platform