Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can this one to many SQL line be made faster?
Message
De
29/01/2004 04:49:45
 
 
À
29/01/2004 03:56:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00871681
Message ID:
00871705
Vues:
15
>>
>>WHERE (b.namount1 + b.namount2 > 0) or ;
>>            (b.namount1 + b.namount2 < 0) or ;
>>            (b.namount3 <> 0 and a.ctype$"F8" ) ;
>>
>>
>At least = is optimized :) !(a=b) would work I think. I was trying to avoid OR completely as I always found it to be problematic in SQL.

It is probably a distribution question.

Another possible approach would be to preselect/filter
the join field of a and a concat of key and delete-state
for a.ctype$"F8" into a separate cursor,
index it on the key plus a marker for deleted()...

the best sql probably depends on the data in the table,
which is bad programming style but sometimes the fastest.

regards

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform