Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LEFT JOIN and complex criteria
Message
De
25/09/2006 13:12:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01156530
Message ID:
01156981
Vues:
22
>Fabio,
>
>This select is quite slow. Do you know if it is possible to make it quicker?
>
>select curTemp.cTrans_pk, TI.cInsurances_fk ;	
>		from curTemp inner join Trans_Insurances TI ;
>		on curTemp.cTrans_pk = TI.cTrans_fk ;	
>		where TI.iSequence_Number = (select max(iSequence_Number) ;
>		from Trans_Insurances X ;
>		where X.cTrans_fk = TI.cTrans_fk) ;
>		into cursor curTemp1
with VFP it is hard

before posting 10 solutions,
you could furnish me these information:

- reccounT(curTemp)/reccount(Trans_Insurances) ratio
- is curTemp.cTrans_pk a pk
- is TI.cTrans_fk a pk or for every curTemp.cTrans_pk the join has many TI.cTrans_fk
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform