Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to extract matching records
Message
De
09/08/2006 10:41:57
 
 
À
02/08/2006 02:32:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01142272
Message ID:
01144145
Vues:
15
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform