Using VFP9 SP1
I'm confused. I have an index on a table where the expression is
When I execute browse statement as follows:
the data appears instantly.
When I run a SQL SELECT like this:
it takes over 2½ seconds.
Why the difference? Is there some way I can use the index with a SQL statement?
Thanks,
Stewart
I'm confused. I have an index on a table where the expression is
Code:
TRIM(AREA)+TRIM(DISTRICT)+" "+TRIM(SECTOR)+TRIM(GROUPING)
When I execute browse statement as follows:
Code:
BROWSE LAST FOR TRIM(AREA)+TRIM(DISTRICT)+" "+TRIM(SECTOR)+TRIM(GROUPING) = [BN12 6AY]
When I run a SQL SELECT like this:
Code:
SELECT PKEY,LINE1 FROM ADDRESS WHERE TRIM(AREA)+TRIM(DISTRICT)+" "+TRIM(SECTOR)+TRIM(GROUPING) = [BN12 6AY]
Why the difference? Is there some way I can use the index with a SQL statement?
Thanks,
Stewart