Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL LIKE and Rushmore optimization
Message
De
20/01/2006 16:11:16
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
20/01/2006 06:05:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01088808
Message ID:
01089047
Vues:
21
>Hi,
>I need help to rushmore optimize query using LIKE... or maybe change sql expression code
>Example of query
>UPPER(Description) like "%HP%PRINTER" or UPPER(Description2) like "%HP%PRINTER" or UPPER(Manufacture) like "%HP%PRINTER" or UPPER(productgroup) like %HP%PRINTER"
>
>Finally.. I'v got SYS(3054) - partial.. only Deleted tag using for rushmore optimization...
>
>Any ideas how to optimize this query, or maybe another way to get same result

OK, here's a SWAG...
select nkey, upper(Description+Description2+Manufacture+productgroup) as cBig;
   from yourtable into cursor tmp

select from yourtable where nkey in (select nkey from tmp ;
   where cBig like "%HP%PRINTER"
I.e. pull the key and your description fields into a cursor, then do the LIKE search in that cursor. May be faster, I wouldn't know. I really don't have such a big table to try with.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform