Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LEFT JOIN and complex criteria
Message
De
25/09/2006 15:29:17
 
 
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:
01157071
Vues:
15
>>I have trust in this
>>
>>SELECT TI.cTrans_fk, TI.cInsurances_fk;
>>    FROM (select curTemp.cTrans_pk , max(T.iSequence_Number) iSequence_Number;
>>	    	from curTemp JOIN Trans_Insurances T ON curTemp.cTrans_pk = T.cTrans_fk ;
>>		    GROUP BY 1) X ;
>>		    JOIN Trans_Insurances TI ;
>>                 ON TI.cTrans_fk = X.cTrans_pk AND TI.iSequence_Number = X.iSequence_Number;
>> into cursor curTemp1
>>
>
>Seems to be a little bit faster, but still quite slow...

post sys(3054) and current exec time
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform