Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is this SQL faster?
Message
De
02/08/2004 07:58:46
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00930072
Message ID:
00930077
Vues:
13
Hi Mel,

a) put a SYS(3054,11) before, which and when VFP optimizes the query?

b) what are RECCOUNT('Ssperson') and RECCOUNT('Ssperson') ?
INNER JOIN appdata!Ssmoney ;
ON IIF(m.cIsGrouped,Ssperson.familyid,Ssperson.personid) = 
   IIF(m.cIsGrouped,Ssmoney.familyid,Ssmoney.personid)
c) is cIsGrouped a .T./.F. variable ?

if yes, try
INNER JOIN appdata!Ssmoney ;
ON    m.cIsGrouped AND Ssperson.familyid=Ssmoney.familyid 
  OR !m.cIsGrouped AND Ssperson.personid=Ssmoney.personid
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform