Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filtering table
Message
From
21/01/2005 23:00:58
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00979204
Message ID:
00979536
Views:
14
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!

********************************************************
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform