ArticlesArticles Most Helpful ArticlesMost Helpful Articles Language SettingsLanguage Settings LoginLogin
RSS Feeds
DrillDown Icon Table of Contents
DrillDown Icon MX
DrillDown Icon MANUALS and Other Info for SQL MANEX Client Server
DrillDown Icon Customer Relationship Management (CRM)
DrillDown Icon ManEx Minute
DrillDown Icon ManEx Component Exchange
DrillDown Icon ManEx Supplier Directory & Rankings
  Email This ArticlePrint PreviewPrint Current Article and All Sub-Articles
 
BOM Query - Bill of Material Basic Table Query

 

lcBompnt = "_14C0LEUMM"  && make this any parent uniq key
 
SELECT I1.part_no as assyno, I1.descript as assydes, bom_det.item_no, I2.part_no as compno, I2.descript as compdes,;
 invtmfhd.Partmfgr,invtmfhd.mfgr_pt_no,;
 invtmfgr.whno,invtmfgr.qty_oh;

 FROM inventor as I1, inventor as I2, bom_det, invtmfhd, invtmfgr;
 WHERE I1.uniq_key = lcBompnt;
  AND I2.uniq_key = bom_det.uniq_key;
  AND bom_det.bomparent = lcBompnt;
  AND invtmfhd.uniq_key = I2.uniq_key;
  AND invtmfhd.uniqmfgrhd = invtmfgr.uniqmfgrhd;
 ORDER BY item_no, partmfgr;
 INTO CURSOR seeit
BROWSE LAST nowait
  
  
Article ID: 3161