Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which idex used to optimize Join condition
Message
 
 
À
13/11/2000 21:56:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00441403
Message ID:
00441417
Vues:
9
>>Hi everybody,
>>
>>I'll try to rephrase my previous post, since I got 0 answers. Suppose, I have two tables, which I want to join:
>>Table1 with field code1 and index on code1 tag code1
>>Table2 with field code2 and index on code2 tag code2
>>
>>select * from Table1 inner join table2 on code1=code2 ...
>>It seems to me, that if tag names are different (code1 and code2), these indexes aren't used in optimization. Instead SQL creates temp index.
>>
>>Could somebody confirm this behavior? Why it's so?
>>
>
>Rushmore uses index expressions, not names, to decide what index to use.

Ok, why it doesn't use code1 index and code2 index in this case? What's going on here?

It's really weird...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform