Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Merge four tables into 1 cursor
Message
 
To
27/12/2004 12:01:03
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00972379
Message ID:
00972387
Views:
13
SELECT SiMain.*, SisUb.ICode, SisUb.qntymaj, , SisUb.qntymin, , SisUb.RateMaj, SisUb.RateMin,;
       PCode.PName, Icode.full_desc;
       FROM SiMain;
       LEFT JOIN SisUp ON SiMain.SiNo  == SisUp.SiNo; && May be You need RIGHT JOIN here?
       LEFT JOIN PCode ON SiMain.PCode == PCode.PCode;
       LEFT JOIN Icode ON SisUp.Icode  == Icode.Icode;
       WHERE BETWEEN(Simain.Invdate, mdt1, mdt2)        .AND.;
             UPPER(Simain.Salesman) == UPPER(msalesman) .AND.;
             Simain.PCode == mpcode;
INTO CURSOR cTest
Is this works for You?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform