Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select when less than n occurances
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
00991781
Message ID:
00994012
Vues:
28
Cheers both of you, thats worked a treat.

I now do this:
SELECT custid FROM mainfile group by custid HAVING CNT(*) < 10 INTO cursor lessThan10
SELECT * FROM mainfile where custid in (select * from lessThan10) into table Under10
SELECT * FROM mainfile where custid NOT in (select * from lessThan10) into table Over10
thanks again.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform