Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Joining these two tables
Message
 
 
À
13/05/2010 18:23:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01464478
Message ID:
01464510
Vues:
43
>>How do I include all parts.dbf records in the results?
>
>Another way to do the WHERE first is to do the SELECT in steps, with temporary cursors. I believe I must have done something similar at one time, when I got what I considered at that time to be queer results. In the present case, something like this:
>
>
>select * from Price;
>  where BranchPlant = "123" and Date1 <= ldDate and Date2 >= ldDate;
>  into cursor TempPrice;
>  nofilter
>select *;
>  from parts left outer join TempPrice on Parts.ItemNo = Price.ItemNo;
>  into cursor myResults
>
Using select * is not a good practice. Take a look
Don't use Select * but list Columns (this is for SQL Server, but it's better to use good habits).
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform