Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is this SQL faster?
Message
From
02/08/2004 07:58:46
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00930072
Message ID:
00930077
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform