商品组详情查询.sql 713 B

123456789101112131415161718192021222324
  1. SELECT t1.sa_itemgroupid,
  2. t2.itemid,
  3. t1.changeby,
  4. t1.createby,
  5. t1.changedate,
  6. t1.createdate,
  7. t1.sa_brandid,
  8. t3.brandname,
  9. t1.groupnum,
  10. t1.itemno,
  11. t2.itemname,
  12. t1.groupname,
  13. t1.tradefield,
  14. t1.isonsale,
  15. t1.sequence,
  16. t1.sa_customschemeid,
  17. t4.schemename
  18. FROM sa_itemgroup t1
  19. LEFT JOIN plm_item t2 ON t1.itemno = t2.itemno
  20. AND t1.siteid = t2.siteid
  21. LEFT JOIN sa_brand t3 ON t3.sa_brandid = t1.sa_brandid
  22. AND t3.siteid = t1.siteid
  23. LEFT JOIN sa_customscheme t4 ON t1.sa_customschemeid = t4.sa_customschemeid and t1.siteid=t4.siteid
  24. where t1.sa_itemgroupid = $sa_itemgroupid$