Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need optimization help
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Need optimization help
Miscellaneous
Thread ID:
00652256
Message ID:
00652256
Views:
69
any suggestions on how to optimize the query below. it runs fine when the there are 40,000 or fewer records in table test (95% of the time). however every once in a while i get 250,000 record sets. i have tried creating indexes on all eight fields.

thanx.

SELECT DISTINCT t1.invnum, t1.vendname, t1.invdate, t1.invamt, t1.vendnum, t1.checknum, t1.checkdat, t1.misc;
FROM test t1, test t2 ;
WHERE t1.invnum != t2.invnum ;
AND t1.vendname = t2.vendname ;
AND t1.invdate !=t2.invdate ;
AND t1.invamt =t2.invamt ;
INTO TABLE report6
Next
Reply
Map
View

Click here to load this message in the networking platform