Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore optimization
Message
From
23/02/2005 16:29:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Rushmore optimization
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00989848
Message ID:
00989848
Views:
47
Hi

I have a large table with a status field and I want to select the records for a group os status's.
the table is indexed on the status

this can be done by
lcStatusList = 'AFTHEW'
SELECT* ;
FROM mytable ;
WHERE mytable.status $ ?lcStatusList
Unfortunately, this does not optimize.

Is there any way to fully optimize this query without expanding the Select to something like
SELECT* ;
FROM mytable ;
WHERE mytable.status = 'A' OR ;
	mytable.status = 'F' OR ;
	mytable.status = 'T' OR ;
	mytable.status = 'H' OR ;
	mytable.status = 'E' OR ;
	mytable.status = 'W'
regards
Geoff Scott
May all your weeds be wildflowers
Next
Reply
Map
View

Click here to load this message in the networking platform