Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Filter to
Message
From
07/03/2003 17:25:59
 
 
To
07/03/2003 16:59:14
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00762585
Message ID:
00763075
Views:
18
Mike,

>
>LOCATE FOR FIELD1=SOMETHING AND FIELD2=SOMETHING

Sometime (not always) we can do:
set near on
seek something
scan rest while FIELD1=SOMETHING for FIELD2=SOMETHING
endscan
>
>You'll need three index tags to do what you suggest. The best practice is to use SQL and have the two indexes and not to grab more data than necessary.

Deal.. Completely correct !! :)

Just an addedum.. BINARY SEARCH (by index) will be many times faster than SEQUENTIAL SEARCH.. So, there is some moments that SQL will be the "wild thing".. (If we don´t have the properly key for that search)

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Reply
Map
View

Click here to load this message in the networking platform