Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query takes time to get data
Message
From
26/12/2005 11:20:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/12/2005 08:47:41
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01080798
Message ID:
01080829
Views:
7
>HELLO hilmar
>this is the SQL Statment
>
>"SELECT CONTRNO,ID_NO,SUBNO FROM POSTPAID WHERE ALLTRIM("271120500557") LIKE ALLTRIM(ID_NO) ORDER BY ID_NO INTO CURSOR QUERY1"
>
>i use SYS(3054,11) to see Rushmore Optimization Level & the level is (None)
>how i can make my SQL statment to make Rushmore Optimization Level(full)
>waiting for your reply
>
>Best Reagdrs
>Mazahir

Then, the problem seems to be with the alltrim(). A direct comparison of the fields, as suggested in the other replies you got, can be optimized; an alltrim() is difficult to optimize.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform