Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filtering table
Message
De
21/01/2005 23:00:58
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00979204
Message ID:
00979536
Vues:
12
Dear Barbara,

sCode = Supplier's product code
sDetail = supplier's product description
pCost = Product's Cost
pDiscount = Product's discounted price
sID = supplier's ID
oMID = our Product code

I would like to select from the purchasing history to form a list of product code available with the same product and same supplier, i.e.
SELECT DISTINCT sCode,sDetail,sID,oMID FROM stockPurchase WHERE sID= ?lsID AND oMID = ?loMID ORDER BY sCODE
However, it is more informative if I can add pCost & pDiscount for reference...
SELECT DISTINCT sCode,sDetail,pCost,pDiscount,sID,oMID FROM stockPurchase WHERE sID= ?lsID AND oMID = ?loMID ORDER BY sCODE
However, in that, even there is price difference, there will be additional record for that... so I don't want it...
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform