Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not optimized
Message
De
15/02/2010 14:21:23
 
 
À
15/02/2010 14:06:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01449210
Message ID:
01449216
Vues:
50
>The following is very slow, presumably because of my use of IN
Select * From KTrackTagDetail							;
>	where (Seqno In (Select Seqno From C_Kits)			;
>	or SeqnoFG In (Select Seqno From C_Kits))			;
>	and Left (RecordType,2) # 'AP'						;
>	into Cursor C_Detail
>So, how can I speed this up?
>
>Thanks


or
This could also work
Select * From KTrackTagDetail ;
	left join C_Kits on ( C_Kits.Seqno in ( KTrackTagDetail.Seqno, KTrackTagDetail.SeqnoFG) ) ;
	where (  Left (RecordType,2) # 'AP' ) ;
	    and ( C_Kits.Seqno is not null )
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform