Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Merge four tables into 1 cursor
Message
 
À
27/12/2004 12:01:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
00972379
Message ID:
00972387
Vues:
12
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform