Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select when less than n occurances
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00991781
Message ID:
00994012
Views:
29
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform